How To Install python3-pygit2 on Fedora 36

In this tutorial we learn how to install python3-pygit2 in Fedora 36. python3-pygit2 is Python 3 bindings for libgit2

Introduction

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

What is python3-pygit2

pygit2 is a set of Python bindings to the libgit2 library, which implements the core of Git. The python3-pygit2 package contains the Python 3 bindings.

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

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

sudo dnf -y install python3-pygit2

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

sudo yum -y install python3-pygit2

How To Uninstall python3-pygit2 on Fedora 36

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

sudo dnf remove python3-pygit2

python3-pygit2 Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/2a
/usr/lib/.build-id/2a/24c6d8d18c8e981f08c1ceb66c86710d7b485e
/usr/lib/.build-id/b1
/usr/lib/.build-id/b1/941db3391a7d859c78482da693d6790536417c
/usr/lib64/python3.10/site-packages/pygit2
/usr/lib64/python3.10/site-packages/pygit2-1.7.1-py3.10.egg-info
/usr/lib64/python3.10/site-packages/pygit2-1.7.1-py3.10.egg-info/PKG-INFO
/usr/lib64/python3.10/site-packages/pygit2-1.7.1-py3.10.egg-info/SOURCES.txt
/usr/lib64/python3.10/site-packages/pygit2-1.7.1-py3.10.egg-info/dependency_links.txt
/usr/lib64/python3.10/site-packages/pygit2-1.7.1-py3.10.egg-info/not-zip-safe
/usr/lib64/python3.10/site-packages/pygit2-1.7.1-py3.10.egg-info/requires.txt
/usr/lib64/python3.10/site-packages/pygit2-1.7.1-py3.10.egg-info/top_level.txt
/usr/lib64/python3.10/site-packages/pygit2/__init__.py
/usr/lib64/python3.10/site-packages/pygit2/__pycache__
/usr/lib64/python3.10/site-packages/pygit2/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/pygit2/__pycache__/__init__.cpython-310.pyc
/usr/lib64/python3.10/site-packages/pygit2/__pycache__/_build.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/pygit2/__pycache__/_build.cpython-310.pyc
/usr/lib64/python3.10/site-packages/pygit2/__pycache__/_run.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/pygit2/__pycache__/_run.cpython-310.pyc
/usr/lib64/python3.10/site-packages/pygit2/__pycache__/blame.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/pygit2/__pycache__/blame.cpython-310.pyc
/usr/lib64/python3.10/site-packages/pygit2/__pycache__/callbacks.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/pygit2/__pycache__/callbacks.cpython-310.pyc
/usr/lib64/python3.10/site-packages/pygit2/__pycache__/config.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/pygit2/__pycache__/config.cpython-310.pyc
/usr/lib64/python3.10/site-packages/pygit2/__pycache__/credentials.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/pygit2/__pycache__/credentials.cpython-310.pyc
/usr/lib64/python3.10/site-packages/pygit2/__pycache__/errors.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/pygit2/__pycache__/errors.cpython-310.pyc
/usr/lib64/python3.10/site-packages/pygit2/__pycache__/ffi.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/pygit2/__pycache__/ffi.cpython-310.pyc
/usr/lib64/python3.10/site-packages/pygit2/__pycache__/index.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/pygit2/__pycache__/index.cpython-310.pyc
/usr/lib64/python3.10/site-packages/pygit2/__pycache__/packbuilder.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/pygit2/__pycache__/packbuilder.cpython-310.pyc
/usr/lib64/python3.10/site-packages/pygit2/__pycache__/refspec.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/pygit2/__pycache__/refspec.cpython-310.pyc
/usr/lib64/python3.10/site-packages/pygit2/__pycache__/remote.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/pygit2/__pycache__/remote.cpython-310.pyc
/usr/lib64/python3.10/site-packages/pygit2/__pycache__/repository.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/pygit2/__pycache__/repository.cpython-310.pyc
/usr/lib64/python3.10/site-packages/pygit2/__pycache__/settings.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/pygit2/__pycache__/settings.cpython-310.pyc
/usr/lib64/python3.10/site-packages/pygit2/__pycache__/submodule.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/pygit2/__pycache__/submodule.cpython-310.pyc
/usr/lib64/python3.10/site-packages/pygit2/__pycache__/utils.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/pygit2/__pycache__/utils.cpython-310.pyc
/usr/lib64/python3.10/site-packages/pygit2/_build.py
/usr/lib64/python3.10/site-packages/pygit2/_libgit2.abi3.so
/usr/lib64/python3.10/site-packages/pygit2/_pygit2.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/pygit2/_run.py
/usr/lib64/python3.10/site-packages/pygit2/blame.py
/usr/lib64/python3.10/site-packages/pygit2/callbacks.py
/usr/lib64/python3.10/site-packages/pygit2/config.py
/usr/lib64/python3.10/site-packages/pygit2/credentials.py
/usr/lib64/python3.10/site-packages/pygit2/decl
/usr/lib64/python3.10/site-packages/pygit2/decl/attr.h
/usr/lib64/python3.10/site-packages/pygit2/decl/blame.h
/usr/lib64/python3.10/site-packages/pygit2/decl/buffer.h
/usr/lib64/python3.10/site-packages/pygit2/decl/callbacks.h
/usr/lib64/python3.10/site-packages/pygit2/decl/checkout.h
/usr/lib64/python3.10/site-packages/pygit2/decl/clone.h
/usr/lib64/python3.10/site-packages/pygit2/decl/commit.h
/usr/lib64/python3.10/site-packages/pygit2/decl/common.h
/usr/lib64/python3.10/site-packages/pygit2/decl/config.h
/usr/lib64/python3.10/site-packages/pygit2/decl/describe.h
/usr/lib64/python3.10/site-packages/pygit2/decl/diff.h
/usr/lib64/python3.10/site-packages/pygit2/decl/errors.h
/usr/lib64/python3.10/site-packages/pygit2/decl/graph.h
/usr/lib64/python3.10/site-packages/pygit2/decl/index.h
/usr/lib64/python3.10/site-packages/pygit2/decl/indexer.h
/usr/lib64/python3.10/site-packages/pygit2/decl/merge.h
/usr/lib64/python3.10/site-packages/pygit2/decl/net.h
/usr/lib64/python3.10/site-packages/pygit2/decl/oid.h
/usr/lib64/python3.10/site-packages/pygit2/decl/pack.h
/usr/lib64/python3.10/site-packages/pygit2/decl/proxy.h
/usr/lib64/python3.10/site-packages/pygit2/decl/refspec.h
/usr/lib64/python3.10/site-packages/pygit2/decl/remote.h
/usr/lib64/python3.10/site-packages/pygit2/decl/repository.h
/usr/lib64/python3.10/site-packages/pygit2/decl/revert.h
/usr/lib64/python3.10/site-packages/pygit2/decl/stash.h
/usr/lib64/python3.10/site-packages/pygit2/decl/strarray.h
/usr/lib64/python3.10/site-packages/pygit2/decl/submodule.h
/usr/lib64/python3.10/site-packages/pygit2/decl/transport.h
/usr/lib64/python3.10/site-packages/pygit2/decl/types.h
/usr/lib64/python3.10/site-packages/pygit2/errors.py
/usr/lib64/python3.10/site-packages/pygit2/ffi.py
/usr/lib64/python3.10/site-packages/pygit2/index.py
/usr/lib64/python3.10/site-packages/pygit2/packbuilder.py
/usr/lib64/python3.10/site-packages/pygit2/refspec.py
/usr/lib64/python3.10/site-packages/pygit2/remote.py
/usr/lib64/python3.10/site-packages/pygit2/repository.py
/usr/lib64/python3.10/site-packages/pygit2/settings.py
/usr/lib64/python3.10/site-packages/pygit2/submodule.py
/usr/lib64/python3.10/site-packages/pygit2/utils.py
/usr/share/doc/python3-pygit2
/usr/share/doc/python3-pygit2/README.rst
/usr/share/licenses/python3-pygit2
/usr/share/licenses/python3-pygit2/COPYING

References

Summary

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