Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to resolve duplicate RPMs #528

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Attempt to resolve duplicate RPMs #528

wants to merge 1 commit into from

Conversation

sloanebernstein
Copy link
Contributor

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

lib/Elevate/Components/PackageDupes.pm Show resolved Hide resolved
lib/Elevate/Components/PackageDupes.pm Outdated Show resolved Hide resolved
lib/Elevate/Components/PackageDupes.pm Outdated Show resolved Hide resolved
lib/Elevate/Components/PackageDupes.pm Show resolved Hide resolved
t/components-PackageDupes.t Show resolved Hide resolved
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants