package-cleanup --cleandupes fails with "Error: Depsolving loop limit reached" Need to remove duplicate packages

Solution Verified - Updated -

Issue

  • There are multiple duplicate packages in rpmdb for some unknown reason.
  • There are too many duplicate packages and it is difficult to sort out only the old ones for removal.
  • package-cleanup --cleandupes fails with something like the following:
[ MORE OUTPUT ]
Removing NetworkManager.x86_64 1:1.4.0-20.el7_3 - e due to obsoletes from installed 1:NetworkManager-1.8.0-11.el7_4.x86_64
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package NetworkManager.x86_64 1:1.4.0-20.el7_3 will be erased
--> Processing Dependency: NetworkManager-libnm(x86-64) = 1:1.4.0-20.el7_3 for package: 1:NetworkManager-1.4.0-20.el7_3.x86_64
--> Running transaction check
---> Package NetworkManager.x86_64 1:1.4.0-20.el7_3 will be erased
Removing NetworkManager.x86_64 1:1.4.0-20.el7_3 - e due to obsoletes from installed 1:NetworkManager-1.8.0-11.el7_4.x86_64
--> Restarting Dependency Resolution with new changes.
Error: Depsolving loop limit reached.
 You could try using --skip-broken to work around the problem
** Found 174 pre-existing rpmdb problem(s), 'yum check' output follows:
1:NetworkManager-1.8.0-11.el7_4.x86_64 is a duplicate with 1:NetworkManager-1.4.0-20.el7_3.x86_64
[ MORE OUTPUT ]

Environment

Red Hat Enterprise Linux

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In