How To Install python3-libdnf on Fedora 36

In this tutorial we learn how to install python3-libdnf in Fedora 36. python3-libdnf is Python 3 bindings for the libdnf library.

Introduction

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

What is python3-libdnf

Python 3 bindings for the libdnf library.

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

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

sudo dnf -y install python3-libdnf

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

sudo yum -y install python3-libdnf

How To Uninstall python3-libdnf on Fedora 36

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

sudo dnf remove python3-libdnf

python3-libdnf Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/0c/9793983e323b9accc8eaa9d030a6acae0139de
/usr/lib/.build-id/2c
/usr/lib/.build-id/2c/f87a58a6c88416e31de5218404d41de0d2a7fe
/usr/lib/.build-id/5b
/usr/lib/.build-id/5b/054d5584f8a4a92757bb415653308f9410ddab
/usr/lib/.build-id/5f
/usr/lib/.build-id/5f/31ba0353b15e8383c482d48bf96f745dd98c2c
/usr/lib/.build-id/93
/usr/lib/.build-id/93/20135f440b25c606491dbf99ee5a9bf8bfacd3
/usr/lib/.build-id/a9
/usr/lib/.build-id/a9/99fdaa309db79a0fe6ea7f581a16326dc01285
/usr/lib/.build-id/b8
/usr/lib/.build-id/b8/a1263f7c93903c811d20f087887ffda2c81357
/usr/lib/.build-id/e2
/usr/lib/.build-id/e2/27d725147ff01383a88f6d8f4567bb04cef049
/usr/lib64/python3.10/site-packages/libdnf
/usr/lib64/python3.10/site-packages/libdnf/__init__.py
/usr/lib64/python3.10/site-packages/libdnf/__pycache__
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/__init__.cpython-310.pyc
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/common_types.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/common_types.cpython-310.pyc
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/conf.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/conf.cpython-310.pyc
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/error.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/error.cpython-310.pyc
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/module.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/module.cpython-310.pyc
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/repo.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/repo.cpython-310.pyc
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/smartcols.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/smartcols.cpython-310.pyc
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/transaction.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/transaction.cpython-310.pyc
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/utils.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/utils.cpython-310.pyc
/usr/lib64/python3.10/site-packages/libdnf/_common_types.so
/usr/lib64/python3.10/site-packages/libdnf/_conf.so
/usr/lib64/python3.10/site-packages/libdnf/_error.so
/usr/lib64/python3.10/site-packages/libdnf/_module.so
/usr/lib64/python3.10/site-packages/libdnf/_repo.so
/usr/lib64/python3.10/site-packages/libdnf/_smartcols.so
/usr/lib64/python3.10/site-packages/libdnf/_transaction.so
/usr/lib64/python3.10/site-packages/libdnf/_utils.so
/usr/lib64/python3.10/site-packages/libdnf/common_types.py
/usr/lib64/python3.10/site-packages/libdnf/conf.py
/usr/lib64/python3.10/site-packages/libdnf/error.py
/usr/lib64/python3.10/site-packages/libdnf/module.py
/usr/lib64/python3.10/site-packages/libdnf/repo.py
/usr/lib64/python3.10/site-packages/libdnf/smartcols.py
/usr/lib64/python3.10/site-packages/libdnf/transaction.py
/usr/lib64/python3.10/site-packages/libdnf/utils.py
/usr/lib/.build-id
/usr/lib/.build-id/17
/usr/lib/.build-id/17/f5d75af45beb3193a72dffa9d21f51940bfe2a
/usr/lib/.build-id/49
/usr/lib/.build-id/49/ec097672522456374b5ad9a9c37b9e6eae6ee0
/usr/lib/.build-id/55
/usr/lib/.build-id/55/d9c7aabbc4adfeac79880624c83395d3e517cc
/usr/lib/.build-id/8a
/usr/lib/.build-id/8a/21e26b271f8a8aba3e1b7fb4985753214008c6
/usr/lib/.build-id/94
/usr/lib/.build-id/94/b336ed2e9f5fb775989b7e856b953930f7afff
/usr/lib/.build-id/a4
/usr/lib/.build-id/a4/9cf47d6b94c6d92a498ec6ea8eccccec2bd23e
/usr/lib/.build-id/ba
/usr/lib/.build-id/ba/21fdc7389bd521632ea2b3ac49d9d43fbc8f08
/usr/lib/.build-id/f5
/usr/lib/.build-id/f5/5423fe80648190337622033189188ff6b7b38f
/usr/lib64/python3.10/site-packages/libdnf
/usr/lib64/python3.10/site-packages/libdnf/__init__.py
/usr/lib64/python3.10/site-packages/libdnf/__pycache__
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/__init__.cpython-310.pyc
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/common_types.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/common_types.cpython-310.pyc
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/conf.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/conf.cpython-310.pyc
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/error.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/error.cpython-310.pyc
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/module.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/module.cpython-310.pyc
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/repo.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/repo.cpython-310.pyc
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/smartcols.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/smartcols.cpython-310.pyc
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/transaction.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/transaction.cpython-310.pyc
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/utils.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/libdnf/__pycache__/utils.cpython-310.pyc
/usr/lib64/python3.10/site-packages/libdnf/_common_types.so
/usr/lib64/python3.10/site-packages/libdnf/_conf.so
/usr/lib64/python3.10/site-packages/libdnf/_error.so
/usr/lib64/python3.10/site-packages/libdnf/_module.so
/usr/lib64/python3.10/site-packages/libdnf/_repo.so
/usr/lib64/python3.10/site-packages/libdnf/_smartcols.so
/usr/lib64/python3.10/site-packages/libdnf/_transaction.so
/usr/lib64/python3.10/site-packages/libdnf/_utils.so
/usr/lib64/python3.10/site-packages/libdnf/common_types.py
/usr/lib64/python3.10/site-packages/libdnf/conf.py
/usr/lib64/python3.10/site-packages/libdnf/error.py
/usr/lib64/python3.10/site-packages/libdnf/module.py
/usr/lib64/python3.10/site-packages/libdnf/repo.py
/usr/lib64/python3.10/site-packages/libdnf/smartcols.py
/usr/lib64/python3.10/site-packages/libdnf/transaction.py
/usr/lib64/python3.10/site-packages/libdnf/utils.py

References

Summary

In this tutorial we learn how to install python3-libdnf on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).