How To Install librepo-devel on Rocky Linux 8

In this tutorial we learn how to install librepo-devel on Rocky Linux 8. librepo-devel is Repodata downloading library

Introduction

In this tutorial we learn how to install librepo-devel on Rocky Linux 8.

What is librepo-devel

Development files for librepo.

We can use yum or dnf to install librepo-devel on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install librepo-devel.

Install librepo-devel on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install librepo-devel

Install librepo-devel on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install librepo-devel

How To Uninstall librepo-devel on Rocky Linux 8

To uninstall only the librepo-devel package we can use the following command:

sudo dnf remove librepo-devel

librepo-devel Package Contents on Rocky Linux 8

/usr/include/librepo
/usr/include/librepo/checksum.h
/usr/include/librepo/downloader.h
/usr/include/librepo/downloader_internal.h
/usr/include/librepo/downloadtarget.h
/usr/include/librepo/fastestmirror.h
/usr/include/librepo/gpg.h
/usr/include/librepo/handle.h
/usr/include/librepo/librepo.h
/usr/include/librepo/metadata_downloader.h
/usr/include/librepo/metalink.h
/usr/include/librepo/mirrorlist.h
/usr/include/librepo/package_downloader.h
/usr/include/librepo/rcodes.h
/usr/include/librepo/repoconf.h
/usr/include/librepo/repomd.h
/usr/include/librepo/repoutil_yum.h
/usr/include/librepo/result.h
/usr/include/librepo/types.h
/usr/include/librepo/url_substitution.h
/usr/include/librepo/util.h
/usr/include/librepo/version.h
/usr/include/librepo/xmlparser.h
/usr/include/librepo/yum.h
/usr/lib/librepo.so
/usr/lib/pkgconfig/librepo.pc
/usr/include/librepo
/usr/include/librepo/checksum.h
/usr/include/librepo/downloader.h
/usr/include/librepo/downloader_internal.h
/usr/include/librepo/downloadtarget.h
/usr/include/librepo/fastestmirror.h
/usr/include/librepo/gpg.h
/usr/include/librepo/handle.h
/usr/include/librepo/librepo.h
/usr/include/librepo/metadata_downloader.h
/usr/include/librepo/metalink.h
/usr/include/librepo/mirrorlist.h
/usr/include/librepo/package_downloader.h
/usr/include/librepo/rcodes.h
/usr/include/librepo/repoconf.h
/usr/include/librepo/repomd.h
/usr/include/librepo/repoutil_yum.h
/usr/include/librepo/result.h
/usr/include/librepo/types.h
/usr/include/librepo/url_substitution.h
/usr/include/librepo/util.h
/usr/include/librepo/version.h
/usr/include/librepo/xmlparser.h
/usr/include/librepo/yum.h
/usr/lib64/librepo.so
/usr/lib64/pkgconfig/librepo.pc

References

Summary

In this tutorial we learn how to install librepo-devel on Rocky Linux 8 using yum and dnf.