How To Install libdnf on Rocky Linux 8

In this tutorial we learn how to install libdnf on Rocky Linux 8. libdnf is Library providing simplified C and Python API to libsolv

Introduction

In this tutorial we learn how to install libdnf on Rocky Linux 8.

What is libdnf

A Library providing simplified C and Python API to libsolv.

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

Install libdnf 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 libdnf using dnf by running the following command:

sudo dnf -y install libdnf

Install libdnf 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 libdnf using yum by running the following command:

sudo yum -y install libdnf

How To Uninstall libdnf on Rocky Linux 8

To uninstall only the libdnf package we can use the following command:

sudo dnf remove libdnf

libdnf Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/1d
/usr/lib/.build-id/1d/34bf5a61fca06915fc243840e3b9376e4e6eb7
/usr/lib/libdnf
/usr/lib/libdnf.so.2
/usr/lib/libdnf/plugins
/usr/lib/libdnf/plugins/README
/usr/share/doc/libdnf
/usr/share/doc/libdnf/AUTHORS
/usr/share/doc/libdnf/README.md
/usr/share/licenses/libdnf
/usr/share/licenses/libdnf/COPYING
/usr/share/locale/as/LC_MESSAGES/libdnf.mo
/usr/share/locale/bg/LC_MESSAGES/libdnf.mo
/usr/share/locale/bn/LC_MESSAGES/libdnf.mo
/usr/share/locale/bn_IN/LC_MESSAGES/libdnf.mo
/usr/share/locale/ca/LC_MESSAGES/libdnf.mo
/usr/share/locale/cs/LC_MESSAGES/libdnf.mo
/usr/share/locale/da/LC_MESSAGES/libdnf.mo
/usr/share/locale/de/LC_MESSAGES/libdnf.mo
/usr/share/locale/el/LC_MESSAGES/libdnf.mo
/usr/share/locale/es/LC_MESSAGES/libdnf.mo
/usr/share/locale/eu/LC_MESSAGES/libdnf.mo
/usr/share/locale/fa/LC_MESSAGES/libdnf.mo
/usr/share/locale/fi/LC_MESSAGES/libdnf.mo
/usr/share/locale/fil/LC_MESSAGES/libdnf.mo
/usr/share/locale/fr/LC_MESSAGES/libdnf.mo
/usr/share/locale/fur/LC_MESSAGES/libdnf.mo
/usr/share/locale/gu/LC_MESSAGES/libdnf.mo
/usr/share/locale/hi/LC_MESSAGES/libdnf.mo
/usr/share/locale/hu/LC_MESSAGES/libdnf.mo
/usr/share/locale/ia/LC_MESSAGES/libdnf.mo
/usr/share/locale/id/LC_MESSAGES/libdnf.mo
/usr/share/locale/is/LC_MESSAGES/libdnf.mo
/usr/share/locale/it/LC_MESSAGES/libdnf.mo
/usr/share/locale/ja/LC_MESSAGES/libdnf.mo
/usr/share/locale/kn/LC_MESSAGES/libdnf.mo
/usr/share/locale/ko/LC_MESSAGES/libdnf.mo
/usr/share/locale/mai/LC_MESSAGES/libdnf.mo
/usr/share/locale/ml/LC_MESSAGES/libdnf.mo
/usr/share/locale/mr/LC_MESSAGES/libdnf.mo
/usr/share/locale/nb/LC_MESSAGES/libdnf.mo
/usr/share/locale/nl/LC_MESSAGES/libdnf.mo
/usr/share/locale/or/LC_MESSAGES/libdnf.mo
/usr/share/locale/pa/LC_MESSAGES/libdnf.mo
/usr/share/locale/pl/LC_MESSAGES/libdnf.mo
/usr/share/locale/pt/LC_MESSAGES/libdnf.mo
/usr/share/locale/pt_BR/LC_MESSAGES/libdnf.mo
/usr/share/locale/ru/LC_MESSAGES/libdnf.mo
/usr/share/locale/sk/LC_MESSAGES/libdnf.mo
/usr/share/locale/sq/LC_MESSAGES/libdnf.mo
/usr/share/locale/sr/LC_MESSAGES/libdnf.mo
/usr/share/locale/sr@latin/LC_MESSAGES/libdnf.mo
/usr/share/locale/sv/LC_MESSAGES/libdnf.mo
/usr/share/locale/ta/LC_MESSAGES/libdnf.mo
/usr/share/locale/te/LC_MESSAGES/libdnf.mo
/usr/share/locale/th/LC_MESSAGES/libdnf.mo
/usr/share/locale/tr/LC_MESSAGES/libdnf.mo
/usr/share/locale/uk/LC_MESSAGES/libdnf.mo
/usr/share/locale/zh_CN/LC_MESSAGES/libdnf.mo
/usr/share/locale/zh_TW/LC_MESSAGES/libdnf.mo
/usr/lib/.build-id
/usr/lib/.build-id/a9
/usr/lib/.build-id/a9/c5116e9f16112ac7396bb810103907cdc66886
/usr/lib64/libdnf
/usr/lib64/libdnf.so.2
/usr/lib64/libdnf/plugins
/usr/lib64/libdnf/plugins/README
/usr/share/doc/libdnf
/usr/share/doc/libdnf/AUTHORS
/usr/share/doc/libdnf/README.md
/usr/share/licenses/libdnf
/usr/share/licenses/libdnf/COPYING
/usr/share/locale/as/LC_MESSAGES/libdnf.mo
/usr/share/locale/bg/LC_MESSAGES/libdnf.mo
/usr/share/locale/bn/LC_MESSAGES/libdnf.mo
/usr/share/locale/bn_IN/LC_MESSAGES/libdnf.mo
/usr/share/locale/ca/LC_MESSAGES/libdnf.mo
/usr/share/locale/cs/LC_MESSAGES/libdnf.mo
/usr/share/locale/da/LC_MESSAGES/libdnf.mo
/usr/share/locale/de/LC_MESSAGES/libdnf.mo
/usr/share/locale/el/LC_MESSAGES/libdnf.mo
/usr/share/locale/es/LC_MESSAGES/libdnf.mo
/usr/share/locale/eu/LC_MESSAGES/libdnf.mo
/usr/share/locale/fa/LC_MESSAGES/libdnf.mo
/usr/share/locale/fi/LC_MESSAGES/libdnf.mo
/usr/share/locale/fil/LC_MESSAGES/libdnf.mo
/usr/share/locale/fr/LC_MESSAGES/libdnf.mo
/usr/share/locale/fur/LC_MESSAGES/libdnf.mo
/usr/share/locale/gu/LC_MESSAGES/libdnf.mo
/usr/share/locale/hi/LC_MESSAGES/libdnf.mo
/usr/share/locale/hu/LC_MESSAGES/libdnf.mo
/usr/share/locale/ia/LC_MESSAGES/libdnf.mo
/usr/share/locale/id/LC_MESSAGES/libdnf.mo
/usr/share/locale/is/LC_MESSAGES/libdnf.mo
/usr/share/locale/it/LC_MESSAGES/libdnf.mo
/usr/share/locale/ja/LC_MESSAGES/libdnf.mo
/usr/share/locale/kn/LC_MESSAGES/libdnf.mo
/usr/share/locale/ko/LC_MESSAGES/libdnf.mo
/usr/share/locale/mai/LC_MESSAGES/libdnf.mo
/usr/share/locale/ml/LC_MESSAGES/libdnf.mo
/usr/share/locale/mr/LC_MESSAGES/libdnf.mo
/usr/share/locale/nb/LC_MESSAGES/libdnf.mo
/usr/share/locale/nl/LC_MESSAGES/libdnf.mo
/usr/share/locale/or/LC_MESSAGES/libdnf.mo
/usr/share/locale/pa/LC_MESSAGES/libdnf.mo
/usr/share/locale/pl/LC_MESSAGES/libdnf.mo
/usr/share/locale/pt/LC_MESSAGES/libdnf.mo
/usr/share/locale/pt_BR/LC_MESSAGES/libdnf.mo
/usr/share/locale/ru/LC_MESSAGES/libdnf.mo
/usr/share/locale/sk/LC_MESSAGES/libdnf.mo
/usr/share/locale/sq/LC_MESSAGES/libdnf.mo
/usr/share/locale/sr/LC_MESSAGES/libdnf.mo
/usr/share/locale/sr@latin/LC_MESSAGES/libdnf.mo
/usr/share/locale/sv/LC_MESSAGES/libdnf.mo
/usr/share/locale/ta/LC_MESSAGES/libdnf.mo
/usr/share/locale/te/LC_MESSAGES/libdnf.mo
/usr/share/locale/th/LC_MESSAGES/libdnf.mo
/usr/share/locale/tr/LC_MESSAGES/libdnf.mo
/usr/share/locale/uk/LC_MESSAGES/libdnf.mo
/usr/share/locale/zh_CN/LC_MESSAGES/libdnf.mo
/usr/share/locale/zh_TW/LC_MESSAGES/libdnf.mo

References

Summary

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