Just a quick one liner to recover from a
The package were effectively upgraded but the previous version of the package was still in the rpm database for some reason, this one liner take the duplicate (old one) and remove it's definition from the DB.
Archive note, 8 October 2026. This is a 2013 duplicate-package troubleshooting account; the exact CentOS release was not retained in the post. rpm -e --nodeps --justdb alters the package database while bypassing dependency checks, without removing the corresponding files. Preserve a recoverable system/database backup and review an explicit package list before any such intervention. The historical command is not a current general-purpose repair recipe.
for p in $(yum update | grep "is a duplicate" | awk ' { print $6 }'); do rpm -e --nodeps --justdb $p ; done
The package were effectively upgraded but the previous version of the package was still in the rpm database for some reason, this one liner take the duplicate (old one) and remove it's definition from the DB.
Comments
Post a Comment