I can't remove duplicate packages.

Issues related to applications and software problems
hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: I can't remove duplicate packages.

Post by hunter86_bg » 2018/12/22 16:22:53

It's nice there is a new feature '--removenewestdupes'.
This will ease the recovery.

hack3rcon
Posts: 757
Joined: 2014/11/24 11:04:37

Re: I can't remove duplicate packages.

Post by hack3rcon » 2018/12/23 09:58:11

TrevorH wrote:
2018/12/22 13:04:56
I even quoted the relevant section in my last reply yet you still ignore it.
Oh sorry, I'm in a hurry.
I did:

Code: Select all

# package-cleanup --cleandupes --removenewestdupes
and it removed some packages but:

Code: Select all

$ sudo package-cleanup --cleandupes --removenewestdupes
Loaded plugins: fastestmirror, langpacks, priorities
Not removing system-config-printer-libs-1.4.1-21.el7.noarch because it is required by 1 installed package
Not removing libreport-python-2.1.11-40.el7.centos.x86_64 because it is required by 1 installed package
Not removing systemd-219-57.el7_5.3.x86_64 because it is required by 1 installed package
Not removing systemd-libs-219-57.el7_5.3.x86_64 because it is required by 1 installed package
Not removing pulseaudio-10.0-5.el7.x86_64 because it is required by 2 installed packages
Not removing libvirt-daemon-driver-network-3.9.0-14.el7_5.8.x86_64 because it is required by 2 installed packages
Not removing libreport-2.1.11-40.el7.centos.x86_64 because it is required by 4 installed packages
Not removing nss-3.36.0-7.el7_5.x86_64 because it is required by 12 installed packages
Not removing chkconfig-1.7.4-1.el7.x86_64 because it is required by 6 installed packages
Not removing libreport-filesystem-2.1.11-40.el7.centos.x86_64 because it is required by 1 installed package
Not removing p11-kit-0.23.5-3.el7.x86_64 because it is required by 1 installed package
Not removing NetworkManager-1.10.2-16.el7_5.x86_64 because it is required by 5 installed packages
Not removing abrt-libs-2.1.11-50.el7.centos.x86_64 because it is required by 1 installed package
Not removing boost-system-1.53.0-27.el7.x86_64 because it is required by 1 installed package
Not removing pulseaudio-libs-10.0-5.el7.x86_64 because it is required by 4 installed packages
Not removing webrtc-audio-processing-0.3-1.el7.x86_64 because it is required by 1 installed package
Not removing pcp-conf-3.12.2-5.el7.x86_64 because it is required by 1 installed package
Not removing pcp-libs-3.12.2-5.el7.x86_64 because it is required by 31 installed packages
Not removing libvirt-daemon-3.9.0-14.el7_5.8.x86_64 because it is required by 7 installed packages
Not removing avahi-libs-0.6.31-19.el7.x86_64 because it is required by 2 installed packages
Not removing abrt-dbus-2.1.11-50.el7.centos.x86_64 because it is required by 1 installed package
Not removing audit-libs-2.8.1-3.el7_5.1.x86_64 because it is required by 1 installed package
Not removing cyrus-sasl-lib-2.1.26-23.el7.x86_64 because it is required by 1 installed package
Not removing abrt-python-2.1.11-50.el7.centos.x86_64 because it is required by 1 installed package
Not removing libselinux-2.5-12.el7.x86_64 because it is required by 1 installed package
Not removing NetworkManager-libnm-1.10.2-16.el7_5.x86_64 because it is required by 9 installed packages
Not removing gettext-libs-0.19.8.1-2.el7.x86_64 because it is required by 1 installed package
Not removing pciutils-libs-3.5.1-3.el7.x86_64 because it is required by 3 installed packages
Not removing openssh-7.4p1-16.el7.x86_64 because it is required by 1 installed package
Not removing libimobiledevice-1.2.0-1.el7.x86_64 because it is required by 1 installed package
Not removing libreport-web-2.1.11-40.el7.centos.x86_64 because it is required by 3 installed packages
Not removing libplist-1.12-3.el7.x86_64 because it is required by 2 installed packages
Not removing avahi-glib-0.6.31-19.el7.x86_64 because it is required by 1 installed package
Not removing caribou-0.4.21-1.el7.x86_64 because it is required by 1 installed package
Not removing abrt-2.1.11-50.el7.centos.x86_64 because it is required by 2 installed packages
Not removing libgphoto2-2.5.15-1.el7.x86_64 because it is required by 2 installed packages
Not removing libreport-plugin-reportuploader-2.1.11-40.el7.centos.x86_64 because it is required by 1 installed package
Not removing dleyna-core-0.5.0-1.el7.x86_64 because it is required by 1 installed package
No duplicates to remove
Warning: Some duplicates were not removed because they are required by installed packages.
You can try --cleandupes without --removenewestdupes, or review them with --dupes and remove manually.
and:

Code: Select all

$ sudo yum update
.
.
.
Error: nss-pem conflicts with nss-3.19.1-18.el7.x86_64
Error: Package: libimobiledevice-1.1.5-6.el7.x86_64 (@anaconda)
           Requires: libusbmuxd.so.2()(64bit)
           Removing: usbmuxd-1.0.8-11.el7.x86_64 (@anaconda)
               libusbmuxd.so.2()(64bit)
           Obsoleted By: usbmuxd-1.1.0-1.el7.x86_64 (base)
               Not found
 You could try using --skip-broken to work around the problem
** Found 57 pre-existing rpmdb problem(s), 'yum check' output follows:
1:NetworkManager-1.10.2-16.el7_5.x86_64 is a duplicate with 1:NetworkManager-1.0.6-27.el7.x86_64
1:NetworkManager-libnm-1.10.2-16.el7_5.x86_64 has installed conflicts NetworkManager-glib < ('1', '1.10.2', '16.el7_5'): 1:NetworkManager-glib-1.0.6-27.el7.x86_64
1:NetworkManager-libnm-1.10.2-16.el7_5.x86_64 is a duplicate with 1:NetworkManager-libnm-1.0.6-27.el7.x86_64
abrt-2.1.11-50.el7.centos.x86_64 is a duplicate with abrt-2.1.11-36.el7.centos.x86_64
abrt-dbus-2.1.11-50.el7.centos.x86_64 is a duplicate with abrt-dbus-2.1.11-36.el7.centos.x86_64
abrt-libs-2.1.11-50.el7.centos.x86_64 is a duplicate with abrt-libs-2.1.11-36.el7.centos.x86_64
abrt-python-2.1.11-50.el7.centos.x86_64 is a duplicate with abrt-python-2.1.11-36.el7.centos.x86_64
audit-libs-2.8.1-3.el7_5.1.i686 is a duplicate with audit-libs-2.4.1-5.el7.x86_64
avahi-autoipd-0.6.31-15.el7.x86_64 has installed conflicts avahi > ('0', '0.6.31', '15.el7'): avahi-0.6.31-19.el7.x86_64
avahi-glib-0.6.31-15.el7.x86_64 has installed conflicts avahi > ('0', '0.6.31', '15.el7'): avahi-0.6.31-19.el7.x86_64
avahi-glib-0.6.31-19.el7.x86_64 is a duplicate with avahi-glib-0.6.31-15.el7.x86_64
avahi-gobject-0.6.31-15.el7.x86_64 has installed conflicts avahi > ('0', '0.6.31', '15.el7'): avahi-0.6.31-19.el7.x86_64
avahi-libs-0.6.31-19.el7.x86_64 is a duplicate with avahi-libs-0.6.31-15.el7.x86_64
boost-system-1.53.0-27.el7.x86_64 is a duplicate with boost-system-1.53.0-25.el7.x86_64
caribou-0.4.21-1.el7.x86_64 is a duplicate with caribou-0.4.16-1.el7.x86_64
chkconfig-1.7.4-1.el7.x86_64 is a duplicate with chkconfig-1.3.61-5.el7.x86_64
cyrus-sasl-lib-2.1.26-23.el7.x86_64 is a duplicate with cyrus-sasl-lib-2.1.26-19.2.el7.x86_64
dleyna-core-0.5.0-1.el7.x86_64 is a duplicate with dleyna-core-0.4.0-1.el7.x86_64
firewalld-filesystem-0.4.4.4-15.el7_5.noarch has installed conflicts firewalld < ('0', '0.3.13', None): firewalld-0.3.9-14.el7.noarch
gettext-libs-0.19.8.1-2.el7.x86_64 is a duplicate with gettext-libs-0.18.2.1-4.el7.x86_64
gsettings-desktop-schemas-3.24.1-2.el7_5.x86_64 has installed conflicts control-center < ('1', '3.19.3', None): 1:control-center-3.14.5-8.el7.x86_64
gsettings-desktop-schemas-3.24.1-2.el7_5.x86_64 has installed conflicts gnome-settings-daemon < ('0', '3.19.3', None): gnome-settings-daemon-3.14.4-9.el7.x86_64
libattr-2.4.46-13.el7.i686 is a duplicate with libattr-2.4.46-12.el7.x86_64
libcap-2.22-9.el7.i686 is a duplicate with libcap-2.22-8.el7.x86_64
libdb-5.3.21-24.el7.i686 is a duplicate with libdb-5.3.21-19.el7.x86_64
libgcrypt-1.5.3-14.el7.i686 is a duplicate with libgcrypt-1.5.3-12.el7_1.1.x86_64
libgphoto2-2.5.15-1.el7.x86_64 is a duplicate with libgphoto2-2.5.2-3.el7.x86_64
libimobiledevice-1.2.0-1.el7.x86_64 is a duplicate with libimobiledevice-1.1.5-6.el7.x86_64
libplist-1.12-3.el7.x86_64 is a duplicate with libplist-1.10-4.el7.x86_64
libreport-2.1.11-40.el7.centos.x86_64 is a duplicate with libreport-2.1.11-32.el7.centos.x86_64
libreport-filesystem-2.1.11-40.el7.centos.x86_64 is a duplicate with libreport-filesystem-2.1.11-32.el7.centos.x86_64
libreport-plugin-reportuploader-2.1.11-40.el7.centos.x86_64 is a duplicate with libreport-plugin-reportuploader-2.1.11-32.el7.centos.x86_64
libreport-python-2.1.11-40.el7.centos.x86_64 is a duplicate with libreport-python-2.1.11-32.el7.centos.x86_64
libreport-web-2.1.11-40.el7.centos.x86_64 is a duplicate with libreport-web-2.1.11-32.el7.centos.x86_64
libselinux-2.5-12.el7.i686 has installed conflicts systemd < ('0', '219', '20'): systemd-219-19.el7.x86_64
libselinux-2.5-12.el7.i686 is a duplicate with libselinux-2.2.2-6.el7.x86_64
libselinux-2.5-12.el7.x86_64 has installed conflicts systemd < ('0', '219', '20'): systemd-219-19.el7.x86_64
libsemanage-2.5-11.el7.x86_64 has installed conflicts selinux-policy-base < ('0', '3.13.1', '66'): selinux-policy-targeted-3.13.1-60.el7.noarch
libvirt-daemon-3.9.0-14.el7_5.8.x86_64 is a duplicate with libvirt-daemon-1.2.17-13.el7.x86_64
libvirt-daemon-driver-network-3.9.0-14.el7_5.8.x86_64 is a duplicate with libvirt-daemon-driver-network-1.2.17-13.el7.x86_64
nss-3.36.0-7.el7_5.x86_64 is a duplicate with nss-3.19.1-18.el7.x86_64
nss-pem-1.0.3-4.el7.x86_64 has installed conflicts nss(x86-64) < ('0', '3.28.2', '2.el7'): nss-3.19.1-18.el7.x86_64
openssh-7.4p1-16.el7.x86_64 has installed conflicts selinux-policy < ('0', '3.13.1', '92'): selinux-policy-3.13.1-60.el7.noarch
openssh-7.4p1-16.el7.x86_64 is a duplicate with openssh-6.6.1p1-22.el7.x86_64
p11-kit-0.23.5-3.el7.x86_64 is a duplicate with p11-kit-0.20.7-3.el7.x86_64
pam-1.1.8-22.el7.i686 is a duplicate with pam-1.1.8-12.el7_1.1.x86_64
pciutils-libs-3.5.1-3.el7.x86_64 is a duplicate with pciutils-libs-3.2.1-4.el7.x86_64
pcp-conf-3.12.2-5.el7.x86_64 is a duplicate with pcp-conf-3.10.6-2.el7.x86_64
pcp-libs-3.12.2-5.el7.x86_64 is a duplicate with pcp-libs-3.10.6-2.el7.x86_64
pulseaudio-10.0-5.el7.x86_64 is a duplicate with pulseaudio-6.0-7.el7.x86_64
pulseaudio-libs-10.0-5.el7.x86_64 is a duplicate with pulseaudio-libs-6.0-7.el7.x86_64
python-firewall-0.4.4.4-15.el7_5.noarch has installed conflicts firewalld < ('0', '0.3.14', None): firewalld-0.3.9-14.el7.noarch
system-config-printer-libs-1.4.1-21.el7.noarch is a duplicate with system-config-printer-libs-1.4.1-19.el7.noarch
systemd-219-57.el7_5.3.x86_64 is a duplicate with systemd-219-19.el7.x86_64
systemd-libs-219-57.el7_5.3.i686 is a duplicate with systemd-libs-219-19.el7.x86_64
webrtc-audio-processing-0.3-1.el7.x86_64 is a duplicate with webrtc-audio-processing-0.1-5.el7.x86_64
xz-libs-5.2.2-1.el7.i686 is a duplicate with xz-libs-5.1.2-12alpha.el7.x86_64
Problem exist.

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: I can't remove duplicate packages.

Post by TrevorH » 2018/12/23 12:45:47

And now you get to reinstall your system. Unless by some tiny chance you did actually follow the instructions in that article and make a backup of /var/lib/rpm and /var/lib/yum before you started?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

hack3rcon
Posts: 757
Joined: 2014/11/24 11:04:37

Re: I can't remove duplicate packages.

Post by hack3rcon » 2018/12/23 13:11:42

TrevorH wrote:
2018/12/23 12:45:47
And now you get to reinstall your system. Unless by some tiny chance you did actually follow the instructions in that article and make a backup of /var/lib/rpm and /var/lib/yum before you started?
What does "reinstall" mean? Whole system?

hack3rcon
Posts: 757
Joined: 2014/11/24 11:04:37

Re: I can't remove duplicate packages.

Post by hack3rcon » 2018/12/24 09:03:29

I used https://unix.stackexchange.com/question ... y-problems and decreased it to:

Code: Select all

# package-cleanup --dupes
Loaded plugins: fastestmirror, langpacks, priorities
nss-3.19.1-18.el7.x86_64
nss-3.36.0-7.el7_5.x86_64
When I want to remove them, then it show me:

Code: Select all

Error: Trying to remove "systemd", which is protected
Error: Trying to remove "yum", which is protected
Any idea to solve them?

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: I can't remove duplicate packages.

Post by hunter86_bg » 2018/12/25 21:36:44

Try to remove the newest package via 'rpm -e --no-deps
packagename-version' (check the man for exact syntax).

hack3rcon
Posts: 757
Joined: 2014/11/24 11:04:37

Re: I can't remove duplicate packages.

Post by hack3rcon » 2018/12/26 07:11:53

hunter86_bg wrote:
2018/12/25 21:36:44
Try to remove the newest package via 'rpm -e --no-deps
packagename-version' (check the man for exact syntax).
Thank you.
I did:

Code: Select all

$ sudo rpm -e --nodeps "Package Name"
And problem solved.

Post Reply