How To Install python3-rpkg on Rocky Linux 8

In this tutorial we learn how to install python3-rpkg on Rocky Linux 8. python3-rpkg is Python library for interacting with rpm+git

Introduction

In this tutorial we learn how to install python3-rpkg on Rocky Linux 8.

What is python3-rpkg

A python library for managing RPM package sources in a git repository.

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

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

sudo dnf -y install python3-rpkg

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

sudo yum -y install python3-rpkg

How To Uninstall python3-rpkg on Rocky Linux 8

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

sudo dnf remove python3-rpkg

python3-rpkg Package Contents on Rocky Linux 8

/usr/lib/python3.6/site-packages/pyrpkg
/usr/lib/python3.6/site-packages/pyrpkg/__init__.py
/usr/lib/python3.6/site-packages/pyrpkg/__pycache__
/usr/lib/python3.6/site-packages/pyrpkg/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pyrpkg/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/pyrpkg/__pycache__/cli.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pyrpkg/__pycache__/cli.cpython-36.pyc
/usr/lib/python3.6/site-packages/pyrpkg/__pycache__/errors.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pyrpkg/__pycache__/errors.cpython-36.pyc
/usr/lib/python3.6/site-packages/pyrpkg/__pycache__/gitignore.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pyrpkg/__pycache__/gitignore.cpython-36.pyc
/usr/lib/python3.6/site-packages/pyrpkg/__pycache__/lookaside.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pyrpkg/__pycache__/lookaside.cpython-36.pyc
/usr/lib/python3.6/site-packages/pyrpkg/__pycache__/man_gen.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pyrpkg/__pycache__/man_gen.cpython-36.pyc
/usr/lib/python3.6/site-packages/pyrpkg/__pycache__/sources.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pyrpkg/__pycache__/sources.cpython-36.pyc
/usr/lib/python3.6/site-packages/pyrpkg/__pycache__/utils.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pyrpkg/__pycache__/utils.cpython-36.pyc
/usr/lib/python3.6/site-packages/pyrpkg/cli.py
/usr/lib/python3.6/site-packages/pyrpkg/errors.py
/usr/lib/python3.6/site-packages/pyrpkg/gitignore.py
/usr/lib/python3.6/site-packages/pyrpkg/layout
/usr/lib/python3.6/site-packages/pyrpkg/layout/__init__.py
/usr/lib/python3.6/site-packages/pyrpkg/layout/__pycache__
/usr/lib/python3.6/site-packages/pyrpkg/layout/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pyrpkg/layout/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/pyrpkg/layout/__pycache__/base.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pyrpkg/layout/__pycache__/base.cpython-36.pyc
/usr/lib/python3.6/site-packages/pyrpkg/layout/__pycache__/layouts.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pyrpkg/layout/__pycache__/layouts.cpython-36.pyc
/usr/lib/python3.6/site-packages/pyrpkg/layout/base.py
/usr/lib/python3.6/site-packages/pyrpkg/layout/layouts.py
/usr/lib/python3.6/site-packages/pyrpkg/lookaside.py
/usr/lib/python3.6/site-packages/pyrpkg/man_gen.py
/usr/lib/python3.6/site-packages/pyrpkg/sources.py
/usr/lib/python3.6/site-packages/pyrpkg/utils.py
/usr/lib/python3.6/site-packages/rpkg-1.62-py3.6.egg-info
/usr/lib/python3.6/site-packages/rpkg-1.62-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/rpkg-1.62-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/rpkg-1.62-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/rpkg-1.62-py3.6.egg-info/requires.txt
/usr/lib/python3.6/site-packages/rpkg-1.62-py3.6.egg-info/top_level.txt
/usr/share/doc/python3-rpkg
/usr/share/doc/python3-rpkg/CHANGELOG.rst
/usr/share/doc/python3-rpkg/README.rst
/usr/share/licenses/python3-rpkg
/usr/share/licenses/python3-rpkg/COPYING
/usr/share/licenses/python3-rpkg/COPYING-koji
/usr/share/licenses/python3-rpkg/LGPL

References

Summary

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