Duplicate Packages

Latest response

Hello,

We have a duplicate nettle packages that I would like to remove the old once and leave the newest one, how can I do that?

Installed Packages
Name : nettle
Version : 3.7.3
Release : 2.el9
Architecture : x86_64
Size : 718 k
Source : nettle-3.7.3-2.el9.src.rpm
Repository : @System
Summary : A low-level cryptographic library
URL : http://www.lysator.liu.se/~nisse/nettle/
License : LGPLv3+ or GPLv2+
Description : Nettle is a cryptographic library that is designed to fit easily
: in more or less any context: In crypto toolkits for
: object-oriented languages (C++, Python, Pike, ...), in
: applications like LSH or GNUPG, or even in kernel space.

Available Packages
Name : nettle
Version : 3.4.1
Release : 7.el8
Architecture : i686
Size : 321 k
Source : nettle-3.4.1-7.el8.src.rpm
Repository : RedHat_8_5_BaseOS
Summary : A low-level cryptographic library
URL : http://www.lysator.liu.se/~nisse/nettle/
License : LGPLv3+ or GPLv2+
Description : Nettle is a cryptographic library that is designed to fit easily
: in more or less any context: In crypto toolkits for
: object-oriented languages (C++, Python, Pike, ...), in
: applications like LSH or GNUPG, or even in kernel space.

Name : nettle
Version : 3.4.1
Release : 7.el8
Architecture : i686
Size : 321 k
Source : nettle-3.4.1-7.el8.src.rpm
Repository : rhel-8-for-x86_64-baseos-rpms
Summary : A low-level cryptographic library
URL : http://www.lysator.liu.se/~nisse/nettle/
License : LGPLv3+ or GPLv2+
Description : Nettle is a cryptographic library that is designed to fit easily
: in more or less any context: In crypto toolkits for
: object-oriented languages (C++, Python, Pike, ...), in
: applications like LSH or GNUPG, or even in kernel space.

Responses

based on the output you posted, you do not have multiple copies of 'nettle' installed - you only have one copy installed, version 3.7.3-2.el9; and two other copies, both version 3.4.1-7.el8, are "available" to be installed, from the repositories configured on your system.

I am a little concerned that the installed copy is from the RHEL 9 release, (still in beta) and the copies from your configured repositories are the RHEL 8 version (production release). The ".el8" and ".el9" notations in the "Release:" field indicate which major distro version the packages were built for. Is that a system that has been upgraded from RHEL 8 to RHEL 9? or was the RHEL 9 version of 'nettle' obtained by some other means and installed via "rpm -i..." or "yum localinstall "?

Hello SIT-RHEL support

Besides the good tips from James above, examine if you have other duplicate rpms installed. That RHEL 9 RPM seems odd to have with RHEL 8. Sort that out first please. Double-check your repositories.

Please sort out the tips from James first.

After that, and verifying and making sure your repositories are good (like do not include RHEL 9 if you are at RHEL 8) Also examine this Red Hat solution.

Tread carefully with doing yum complete transaction (that may be only RHEL 7). There are RHEL-specific instructions based on various versions.

It may be good to verify your duplicate rpm issue is for just one rpm and not for many.

Regards,
RJ