OCI: Yum Update Fails With duplicate package error
Applies to
Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64
Goal
When trying to use yum to update packages on a system, it fails with an error such as the following:
pkg v.el7.x86_64" is a duplicate with "pkg.v1.el7.x86_64
Solution
Remove the duplicate package entries from the RPM database.
1. Backup the files: /var/lib/rpm
& /var/lib/yum
2. Download and install yum-utils-1.1.31-46.0.1.el7_5.noarch
or later version.
This can be downloaded from public repository:
https://public-yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/index.html
3. Run the command package-cleanup --dupes
to have the list of duplicates.
0