How To Install libdnf on Fedora 34

libdnf is Library providing simplified C and Python API to libsolv Library providing simplified C and Python API to libsolv

Introduction

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

What is libdnf

A Library providing simplified C and Python API to libsolv. libdnf 0.63.1 1.fc34 i686 691 k libdnf-0.63.1-1.fc34.src.rpm updates Library providing simplified C and Python API to libsolv https LGPLv2+ A Library providing simplified C and Python API to libsolv.

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

Install libdnf on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install libdnf

Install libdnf on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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 34

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

sudo dnf remove libdnf

libdnf Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/1d
/usr/lib/.build-id/1d/c02cc33645774f095b2ce0b2636267191e76a3
/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/96
/usr/lib/.build-id/96/8b5170dbdc26e5b99ff8a16e0ab5e2ea2e802f
/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/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/db
/usr/lib/.build-id/db/d71840742c982c1bfd8b29c97c9248613d521b
/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/ef
/usr/lib/.build-id/ef/16ff7db49d4e7cb5262da1aa44e5e164b00084
/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 Fedora 34 using yum and dnf.