• Home
  • About 404TS
  • Contact

404 Tech Support

Where IT Help is Found

  • Articles
    • Code
    • Entertainment
    • Going Green
    • Hardware, Gadgets, and Products
    • Management
    • Network
    • News
    • Operating Systems
    • Security and Privacy
    • Software
    • System Administration
    • Talking Points
    • Tech Solutions
    • Web
    • Webmaster
  • Reviews
  • Media
    • Infographics
    • Videos
  • Tech Events
  • Tools
    • How do I find my IP address?
    • Browser and plugin tests
  • Get a Technical Consultation
You are here: Home / Articles / System Administration / Resolve duplicate package errors in YUM

Resolve duplicate package errors in YUM

2016-06-01 by Jason

Something went awry this weekend while installing updates for my CentOS server. Using the standard ‘yum update’ command for the yum package manager, there were suddenly a large number of updates to install. I should not have approved them but what do I know compared to the package manager. Foolishly, I proceeded with the updates. Upon its completion, yum began complaining of duplicate packages.

The fast solution to my problem was running this command to clean up the duplicates:

package-cleanup --cleandupes

centos_duplicate

If that had been unable to resolve the problem (and honestly, the direction I started working first) I got a list of the duplicate packages with the package-cleanup -dupes command. I then told the latest package to think it was not installed. I then invoked a Yum update and confirmed the reinstall of the latest version of that package. My input was as below:

package-cleanup --dupes
 rpm -e --justdb nspr-4.11.0-0.1.el6_7.x86_64
 yum update -y

In case of dependencies, you might need to mark more than one package, and in the right order. You will receive this error when you try to mark a package that has other dependencies.

“[packagename] is needed by (installed) [packagedependency]”

Handle the dependencies first and then the package you tried. List the dependency as not installed and then the original package. So in this case:

rpm -e --justdb elfutils-libs-0.164-2.el6.x86_64
 rpm -e --justdb elfutils-libelf-0.164-2.el6.x86_64
 yum update -y

This process was pretty easy to follow and resolve the duplicate warnings. I would update my list of duplicated packages and work my way through them. Although it was time-consuming to follow the manual method, I was making good progress before the package-cleanup -cleandupes took care of everything in one fell swoop.

Filed Under: System Administration Tagged With: linux

Trending

  • Hard Disk Management with EaseUS Partition Master
    In Articles, Tech Solutions
  • Installing Disk Defragmenter for Windows XP
    In Tech Solutions
  • CloudFlare targeted through Google Apps account recovery flaw
    In Security and Privacy, Webmaster

Latest Media Posts

Find Out Where To Download SNES ROMs

Find Out Where To Download SNES ROMs

Multifunctional Video Conversion Tools – Wondershare Video Converter

Multifunctional Video Conversion Tools – Wondershare Video Converter

  • Popular
  • Latest
  • Today Week Month All
  • Access to the resource [servershare] has been disallowed Access to the resource [servershare] has been disallowed
  • Read the Event Logs on Windows Server Core Read the Event Logs on Windows Server Core
  • Increase IIS Private Memory Limit to improve WSUS availability Increase IIS Private Memory Limit to improve WSUS availability
  • How to ‘Unblock’ multiple files at a time with PowerShell How to 'Unblock' multiple files at a time with PowerShell
  • Setup your DFS namespace with DNS for compatibility in a mixed environment Setup your DFS namespace with DNS for compatibility in a mixed environment
  • How Virtual Reality Supports Mental Health Therapy How Virtual Reality Supports Mental Health Therapy
  • Key Strategies of Successful Coin Listing on Exchange Key Strategies of Successful Coin Listing on Exchange
  • Keeping Your Mac Healthy: A Comprehensive Guide to Maintenance and Troubleshooting Keeping Your Mac Healthy: A Comprehensive Guide to Maintenance and Troubleshooting
  • Making Distributed Software Development Work: Strategies and Best Practices for Managing Remote Teams Making Distributed Software Development Work: Strategies and Best Practices for Managing Remote Teams
  • customer contactless payment for drink with mobile phon at cafe counter bar,seller coffee shop accept payment by mobile.new normal lifestyle concept The Latest Innovations In Payment Technology
Ajax spinner

Elevator Pitch

404 Tech Support documents solutions to IT problems, shares worthwhile software and websites, and reviews hardware, consumer electronics, and technology-related books.

Subscribe to 404TS articles by email.

Recent Posts

  • How Virtual Reality Supports Mental Health Therapy
  • Key Strategies of Successful Coin Listing on Exchange
  • Keeping Your Mac Healthy: A Comprehensive Guide to Maintenance and Troubleshooting

Search

FTC Disclaimer

404TechSupport is an Amazon.com affiliate; when you click on an Amazon link from 404TS, the site gets a cut of the proceeds from whatever you buy. This site also uses Skimlinks for smart monetization of other affiliate links.
Use of this site requires displaying and viewing ads as they are presented.

Copyright © 2025 · Magazine Pro Theme on Genesis Framework · WordPress · Log in