I can't remove duplicate packages.

Issues related to applications and software problems
hack3rcon
Posts: 757
Joined: 2014/11/24 11:04:37

I can't remove duplicate packages.

Post by hack3rcon » 2018/12/18 08:32:36

Hello.
I wanted to install a program using "yum" but it showed me an error about:

Code: Select all

You could try using --skip-broken to work around the problem
Then I did:

Code: Select all

# yum-complete-transaction --cleanup-only
# package-cleanup --cleandupes
But, problem exist and not solved.
Any idea?

Thank you.

lightman47
Posts: 1521
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: I can't remove duplicate packages.

Post by lightman47 » 2018/12/19 21:21:05

But, problem exist and not solved.
Any idea?
Nor will it be until you give us a hint about what the problem may be. The error messages you failed to provide were exactly the clues needed to help you. All you provided was your system's 'complaint' - not WHY it complained!

Then there's the issue of duplicate packages mentioned ONLY in the Subject and never again.

<wink>

User avatar
bluegroper
Posts: 266
Joined: 2005/09/07 23:04:21
Location: .au

Re: I can't remove duplicate packages.

Post by bluegroper » 2018/12/20 01:21:12

There's some good info in This Link
HTH
I'm not a complete idiot. There's still a few pieces missing.

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

Re: I can't remove duplicate packages.

Post by hack3rcon » 2018/12/21 06:45:34

lightman47 wrote:
2018/12/19 21:21:05
But, problem exist and not solved.
Any idea?
Nor will it be until you give us a hint about what the problem may be. The error messages you failed to provide were exactly the clues needed to help you. All you provided was your system's 'complaint' - not WHY it complained!

Then there's the issue of duplicate packages mentioned ONLY in the Subject and never again.

<wink>
When I did "yum update":

Code: Select all

# yum update
.
.
.
--> Finished Dependency Resolution
 You could try using --skip-broken to work around the problem
** Found 781 pre-existing rpmdb problem(s), 'yum check' output follows:
ModemManager-glib-1.6.10-1.el7.x86_64 is a duplicate with ModemManager-glib-1.1.0-8.git20130913.el7.x86_64
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-adsl-1.10.2-16.el7_5.x86_64 is a duplicate with 1:NetworkManager-adsl-1.0.6-27.el7.x86_64
1:NetworkManager-glib-1.10.2-16.el7_5.x86_64 has installed conflicts NetworkManager-libnm < ('1', '1.10.2', '16.el7_5'): 1:NetworkManager-libnm-
1.0.6-27.el7.x86_64
1:NetworkManager-glib-1.10.2-16.el7_5.x86_64 is a duplicate with 1:NetworkManager-glib-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
1:NetworkManager-team-1.10.2-16.el7_5.x86_64 is a duplicate with 1:NetworkManager-team-1.0.6-27.el7.x86_64
PackageKit-command-not-found-1.1.5-2.el7.centos.x86_64 is a duplicate with PackageKit-command-not-found-1.0.7-5.el7.centos.x86_64
PackageKit-glib-1.1.5-2.el7.centos.x86_64 is a duplicate with PackageKit-glib-1.0.7-5.el7.centos.x86_64
PackageKit-gstreamer-plugin-1.1.5-2.el7.centos.x86_64 is a duplicate with PackageKit-gstreamer-plugin-1.0.7-5.el7.centos.x86_64
abattis-cantarell-fonts-0.0.25-1.el7.noarch is a duplicate with abattis-cantarell-fonts-0.0.16-3.el7.noarch
abrt-2.1.11-50.el7.centos.x86_64 is a duplicate with abrt-2.1.11-36.el7.centos.x86_64
abrt-addon-ccpp-2.1.11-50.el7.centos.x86_64 is a duplicate with abrt-addon-ccpp-2.1.11-36.el7.centos.x86_64
abrt-addon-kerneloops-2.1.11-50.el7.centos.x86_64 is a duplicate with abrt-addon-kerneloops-2.1.11-36.el7.centos.x86_64
abrt-addon-pstoreoops-2.1.11-50.el7.centos.x86_64 is a duplicate with abrt-addon-pstoreoops-2.1.11-36.el7.centos.x86_64
abrt-addon-python-2.1.11-50.el7.centos.x86_64 is a duplicate with abrt-addon-python-2.1.11-36.el7.centos.x86_64
abrt-addon-vmcore-2.1.11-50.el7.centos.x86_64 is a duplicate with abrt-addon-vmcore-2.1.11-36.el7.centos.x86_64
abrt-addon-xorg-2.1.11-50.el7.centos.x86_64 is a duplicate with abrt-addon-xorg-2.1.11-36.el7.centos.x86_64
abrt-cli-2.1.11-50.el7.centos.x86_64 is a duplicate with abrt-cli-2.1.11-36.el7.centos.x86_64
abrt-console-notification-2.1.11-50.el7.centos.x86_64 is a duplicate with abrt-console-notification-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
.
.
.

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

Re: I can't remove duplicate packages.

Post by TrevorH » 2018/12/21 09:34:56

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/21 13:02:14


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

Re: I can't remove duplicate packages.

Post by TrevorH » 2018/12/21 14:46:35

Did you actually read that wiki page? The bit you need to read is
Updated info: it looks like the package-cleanup command got a new(ish) switch starting in 7.5: --removenewestdupes which does exactly what the rest of this massive article used to attempt to do manually. Try running package-cleanup --removenewestdupes as a first step before you carry on. If the switch is unknown then you might need to follow the rest of this article. Otherwise it probably already did what was needed and you can rerun yum update and this time, make sure the power's on/tmux is in use etc.
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/22 11:08:35

TrevorH wrote:
2018/12/21 14:46:35
Did you actually read that wiki page? The bit you need to read is
Updated info: it looks like the package-cleanup command got a new(ish) switch starting in 7.5: --removenewestdupes which does exactly what the rest of this massive article used to attempt to do manually. Try running package-cleanup --removenewestdupes as a first step before you carry on. If the switch is unknown then you might need to follow the rest of this article. Otherwise it probably already did what was needed and you can rerun yum update and this time, make sure the power's on/tmux is in use etc.
I did :

Code: Select all

$ package-cleanup --dupes --noplugins > packages.txt
# for p in $(cat packages.txt); do echo rpm -e --justdb --nodeps $p;done
but, problem exist.

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: I can't remove duplicate packages.

Post by avij » 2018/12/22 12:08:11

hack3rcon wrote:
2018/12/22 11:08:35
I did :

Code: Select all

$ package-cleanup --dupes --noplugins > packages.txt
# for p in $(cat packages.txt); do echo rpm -e --justdb --nodeps $p;done
but, problem exist.
No wonder. See https://wiki.centos.org/HowTos/Cleaning ... tePackages and hit Ctrl-F, type "echo" and read the relevant sentences.

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

Re: I can't remove duplicate packages.

Post by TrevorH » 2018/12/22 13:04:56

I even quoted the relevant section in my last reply yet you still ignore it.
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

Post Reply