How To Install rpm-libs on CentOS 8

rpm-libs is Libraries for manipulating RPM packages Libraries for manipulating RPM packages Libraries for manipulating RPM packages

Introduction

In this tutorial we learn how to install rpm-libs on CentOS 8.

What is rpm-libs

This package contains the RPM shared libraries. rpm-libs 4.14.3 14.el8_4 i686 370 k rpm-4.14.3-14.el8_4.src.rpm baseos Libraries for manipulating RPM packages http GPLv2+ and LGPLv2+ with exceptions This package contains the RPM shared libraries. rpm-libs 4.14.3 14.el8_4 x86_64 339 k rpm-4.14.3-14.el8_4.src.rpm baseos Libraries for manipulating RPM packages http GPLv2+ and LGPLv2+ with exceptions This package contains the RPM shared libraries.

We can use yum or dnf to install rpm-libs on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install rpm-libs.

Install rpm-libs on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install rpm-libs using dnf by running the following command:

sudo dnf -y install rpm-libs

Install rpm-libs on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install rpm-libs using yum by running the following command:

sudo yum -y install rpm-libs

How To Uninstall rpm-libs on CentOS 8

To uninstall only the rpm-libs package we can use the following command:

sudo dnf remove rpm-libs

rpm-libs Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/1f
/usr/lib/.build-id/1f/2a499f7b6751c3821f35e477030f796d704f2b
/usr/lib/.build-id/49
/usr/lib/.build-id/49/f4c969de39fcbe431d1768b9ef34d902c10221
/usr/lib64/librpm.so.8
/usr/lib64/librpm.so.8.2.0
/usr/lib64/librpmio.so.8
/usr/lib64/librpmio.so.8.2.0
/usr/lib64/rpm-plugins
/usr/lib/.build-id
/usr/lib/.build-id/31
/usr/lib/.build-id/31/4285c00e8955acdf9479b4b0bb8129dfeeb759
/usr/lib/.build-id/c8
/usr/lib/.build-id/c8/e680a10efc6e4e7d9594d451c08683e6de1b43
/usr/lib/librpm.so.8
/usr/lib/librpm.so.8.2.0
/usr/lib/librpmio.so.8
/usr/lib/librpmio.so.8.2.0
/usr/lib/rpm-plugins
/usr/lib/.build-id
/usr/lib/.build-id/5c
/usr/lib/.build-id/5c/a0509d584dc8b3713a9c3c36291449f7c31973
/usr/lib/.build-id/d0
/usr/lib/.build-id/d0/c88a3cba1cb81b1aa9d259cb8ebdfcd83a2e3f
/usr/lib64/librpm.so.8
/usr/lib64/librpm.so.8.2.0
/usr/lib64/librpmio.so.8
/usr/lib64/librpmio.so.8.2.0
/usr/lib64/rpm-plugins
/usr/lib/.build-id
/usr/lib/.build-id/8a
/usr/lib/.build-id/8a/6fcad104360e9829d928d903444e9d6466f5de
/usr/lib/.build-id/8e
/usr/lib/.build-id/8e/13431a5506d03e950a5f02ae4201b495790ef9
/usr/lib/librpm.so.8
/usr/lib/librpm.so.8.2.0
/usr/lib/librpmio.so.8
/usr/lib/librpmio.so.8.2.0
/usr/lib/rpm-plugins

References

Summary

In this tutorial we learn how to install rpm-libs on CentOS 8 using yum and dnf.