How To Install libdnf on Fedora 36

In this tutorial we learn how to install libdnf in Fedora 36. libdnf is Library providing simplified C and Python API to libsolv

Introduction

In this tutorial we learn how to install libdnf on Fedora 36.

What is libdnf

A Library providing simplified C and Python API to libsolv.

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

Install libdnf on Fedora 36 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 Fedora 36 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 Fedora 36

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

sudo dnf remove libdnf

libdnf Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/0c
/usr/lib/.build-id/0c/68f423be91bb9c1a7867aafe8811d9c312b0a1
/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/si/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/c0
/usr/lib/.build-id/c0/813f3487977734d4099320cba9dd1798df89fc
/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/si/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 Fedora 36 using yum and [dnf]((/fedora/36/dnf/).