You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OCI: Yum Update Fails With duplicate package error

edited Feb 14, 2024 3:33AM in Linux

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.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!