How To Install python3-pyrpm on Fedora 36
Introduction
In this tutorial we learn how to install python3-pyrpm
on Fedora 36.
What is python3-pyrpm
Python-rpm-spec is a Python module for parsing RPM spec files. RPMs are build from a package’s sources along with a spec file. The spec file controls how the RPM is built. This module allows you to parse spec files and gives you simple access to various bits of information that is contained in the spec file.
We can use yum
or dnf
to install python3-pyrpm
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-pyrpm.
Install python3-pyrpm 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-pyrpm
using dnf
by running the following command:
sudo dnf -y install python3-pyrpm
Install python3-pyrpm 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-pyrpm
using yum
by running the following command:
sudo yum -y install python3-pyrpm
How To Uninstall python3-pyrpm on Fedora 36
To uninstall only the python3-pyrpm
package we can use the following command:
sudo dnf remove python3-pyrpm
python3-pyrpm Package Contents on Fedora 36
/usr/lib/python3.10/site-packages/pyrpm
/usr/lib/python3.10/site-packages/pyrpm/__init__.py
/usr/lib/python3.10/site-packages/pyrpm/__pycache__
/usr/lib/python3.10/site-packages/pyrpm/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyrpm/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyrpm/__pycache__/spec.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyrpm/__pycache__/spec.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyrpm/spec.py
/usr/lib/python3.10/site-packages/python_rpm_spec-0.11.dist-info
/usr/lib/python3.10/site-packages/python_rpm_spec-0.11.dist-info/INSTALLER
/usr/lib/python3.10/site-packages/python_rpm_spec-0.11.dist-info/LICENSE
/usr/lib/python3.10/site-packages/python_rpm_spec-0.11.dist-info/METADATA
/usr/lib/python3.10/site-packages/python_rpm_spec-0.11.dist-info/WHEEL
/usr/share/doc/python3-pyrpm
/usr/share/doc/python3-pyrpm/AUTHORS
/usr/share/doc/python3-pyrpm/CHANGELOG.md
/usr/share/doc/python3-pyrpm/README.md
/usr/share/doc/python3-pyrpm/examples
/usr/share/doc/python3-pyrpm/examples/__init__.py
/usr/share/doc/python3-pyrpm/examples/a.py
/usr/share/doc/python3-pyrpm/examples/attica-qt5.spec
/usr/share/doc/python3-pyrpm/examples/b.py
/usr/share/doc/python3-pyrpm/examples/c.py
/usr/share/doc/python3-pyrpm/examples/d.py
/usr/share/doc/python3-pyrpm/examples/llvm.spec
/usr/share/licenses/python3-pyrpm
/usr/share/licenses/python3-pyrpm/LICENSE
References
Summary
In this tutorial we learn how to install python3-pyrpm
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).