How To Install pyp2rpm on Fedora 36

In this tutorial we learn how to install pyp2rpm in Fedora 36. pyp2rpm is Convert Python packages to RPM SPECFILES

Introduction

In this tutorial we learn how to install pyp2rpm on Fedora 36.

What is pyp2rpm

Convert Python packages to RPM SPECFILES. The packages can be downloaded from PyPI and the produced SPEC is in line with Fedora 201x-era Python Packaging Guidelines or Mageia Python Policy. Unfortunately, pyp2rpm does not generate spec files according to to the current Fedora Python Packaging Guidelines.

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

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

sudo dnf -y install pyp2rpm

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

sudo yum -y install pyp2rpm

How To Uninstall pyp2rpm on Fedora 36

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

sudo dnf remove pyp2rpm

pyp2rpm Package Contents on Fedora 36

/usr/bin/pyp2rpm
/usr/lib/python3.10/site-packages/pyp2rpm
/usr/lib/python3.10/site-packages/pyp2rpm-3.3.8-py3.10.egg-info
/usr/lib/python3.10/site-packages/pyp2rpm-3.3.8-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/pyp2rpm-3.3.8-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/pyp2rpm-3.3.8-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/pyp2rpm-3.3.8-py3.10.egg-info/entry_points.txt
/usr/lib/python3.10/site-packages/pyp2rpm-3.3.8-py3.10.egg-info/requires.txt
/usr/lib/python3.10/site-packages/pyp2rpm-3.3.8-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/pyp2rpm/__init__.py
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/archive.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/archive.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/bin.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/bin.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/convertor.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/convertor.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/dependency_convert.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/dependency_convert.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/dependency_parser.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/dependency_parser.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/exceptions.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/exceptions.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/filters.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/filters.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/logger.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/logger.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/metadata_extractors.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/metadata_extractors.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/module_runners.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/module_runners.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/name_convertor.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/name_convertor.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/package_data.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/package_data.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/package_getters.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/package_getters.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/settings.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/settings.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/utils.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/utils.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/version.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/version.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/virtualenv.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/__pycache__/virtualenv.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/archive.py
/usr/lib/python3.10/site-packages/pyp2rpm/bin.py
/usr/lib/python3.10/site-packages/pyp2rpm/command
/usr/lib/python3.10/site-packages/pyp2rpm/command/__init__.py
/usr/lib/python3.10/site-packages/pyp2rpm/command/__pycache__
/usr/lib/python3.10/site-packages/pyp2rpm/command/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/command/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/command/__pycache__/extract_dist.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/command/__pycache__/extract_dist.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyp2rpm/command/extract_dist.py
/usr/lib/python3.10/site-packages/pyp2rpm/convertor.py
/usr/lib/python3.10/site-packages/pyp2rpm/dependency_convert.py
/usr/lib/python3.10/site-packages/pyp2rpm/dependency_parser.py
/usr/lib/python3.10/site-packages/pyp2rpm/exceptions.py
/usr/lib/python3.10/site-packages/pyp2rpm/filters.py
/usr/lib/python3.10/site-packages/pyp2rpm/logger.py
/usr/lib/python3.10/site-packages/pyp2rpm/metadata_extractors.py
/usr/lib/python3.10/site-packages/pyp2rpm/module_runners.py
/usr/lib/python3.10/site-packages/pyp2rpm/name_convertor.py
/usr/lib/python3.10/site-packages/pyp2rpm/package_data.py
/usr/lib/python3.10/site-packages/pyp2rpm/package_getters.py
/usr/lib/python3.10/site-packages/pyp2rpm/settings.py
/usr/lib/python3.10/site-packages/pyp2rpm/templates
/usr/lib/python3.10/site-packages/pyp2rpm/templates/epel6.spec
/usr/lib/python3.10/site-packages/pyp2rpm/templates/epel7.spec
/usr/lib/python3.10/site-packages/pyp2rpm/templates/fedora.spec
/usr/lib/python3.10/site-packages/pyp2rpm/templates/macros.spec
/usr/lib/python3.10/site-packages/pyp2rpm/templates/mageia.spec
/usr/lib/python3.10/site-packages/pyp2rpm/templates/pld.spec
/usr/lib/python3.10/site-packages/pyp2rpm/utils.py
/usr/lib/python3.10/site-packages/pyp2rpm/version.py
/usr/lib/python3.10/site-packages/pyp2rpm/virtualenv.py
/usr/share/doc/pyp2rpm
/usr/share/doc/pyp2rpm/README.md
/usr/share/licenses/pyp2rpm
/usr/share/licenses/pyp2rpm/LICENSE

References

Summary

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