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

Merged
merged 2 commits into from
Oct 25, 2024
Merged

Attempt to resolve duplicate RPMs #528

merged 2 commits into from
Oct 25, 2024

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
davelcpanelnet
davelcpanelnet previously approved these changes Oct 18, 2024
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.
@toddr toddr merged commit 1580d60 into main Oct 25, 2024
20 checks passed
@toddr toddr deleted the RE-652 branch October 25, 2024 16:47
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.

4 participants