cpanel / elevate

elevate your cPanel&WHM CentOS 7 server to Almalinux 8
https://cpanel.github.io/elevate/
BSD 2-Clause "Simplified" License
45 stars 31 forks source link

Attempt to resolve duplicate RPMs #528

Closed sloanebernstein closed 1 month ago

sloanebernstein commented 1 month ago

Case RE-652: If there are duplicate packages in the RPM database, certain steps during the ELevate process, such as running yum update, will fail, halting the process.

In order to try to rectify this issue, use the distro-provided package-cleanup --dupes command to list inappropriate duplicate packages, sort packages of common name according to version and release, and carefully remove all but the penultimate package in each list from the RPM database.

If YUM is still not able to untangle the remaining packages, users may restore the unmodified RPM database from the backup create and resolve the issues manually before continuing the ELevate process.

Changelog: Attempt to resolve duplicate RPMs found prior to upgrade.

By submitting pull requests to this repo, I agree to the Contributor License Agreement which can be found at: https://github.com/cpanel/elevate/blob/main/docs/cPanel-CLA.pdf