How To Install pyp2rpm on Fedora 34

pyp2rpm is Convert Python packages to RPM SPECFILES

Introduction

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

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 Packaging Guidelines or Mageia Python Policy.

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

Install pyp2rpm on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install pyp2rpm using dnf by running the following command:

sudo dnf -y install pyp2rpm

Install pyp2rpm on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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 34

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

sudo dnf remove pyp2rpm

pyp2rpm Package Contents on Fedora 34

/usr/bin/pyp2rpm
/usr/lib/python3.9/site-packages/pyp2rpm
/usr/lib/python3.9/site-packages/pyp2rpm-3.3.6-py3.9.egg-info
/usr/lib/python3.9/site-packages/pyp2rpm-3.3.6-py3.9.egg-info/PKG-INFO
/usr/lib/python3.9/site-packages/pyp2rpm-3.3.6-py3.9.egg-info/SOURCES.txt
/usr/lib/python3.9/site-packages/pyp2rpm-3.3.6-py3.9.egg-info/dependency_links.txt
/usr/lib/python3.9/site-packages/pyp2rpm-3.3.6-py3.9.egg-info/entry_points.txt
/usr/lib/python3.9/site-packages/pyp2rpm-3.3.6-py3.9.egg-info/requires.txt
/usr/lib/python3.9/site-packages/pyp2rpm-3.3.6-py3.9.egg-info/top_level.txt
/usr/lib/python3.9/site-packages/pyp2rpm/__init__.py
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/archive.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/archive.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/bin.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/bin.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/convertor.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/convertor.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/dependency_convert.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/dependency_convert.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/dependency_parser.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/dependency_parser.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/exceptions.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/exceptions.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/filters.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/filters.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/logger.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/logger.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/metadata_extractors.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/metadata_extractors.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/module_runners.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/module_runners.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/name_convertor.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/name_convertor.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/package_data.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/package_data.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/package_getters.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/package_getters.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/settings.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/settings.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/utils.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/utils.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/version.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/version.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/virtualenv.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/virtualenv.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/archive.py
/usr/lib/python3.9/site-packages/pyp2rpm/bin.py
/usr/lib/python3.9/site-packages/pyp2rpm/command
/usr/lib/python3.9/site-packages/pyp2rpm/command/__init__.py
/usr/lib/python3.9/site-packages/pyp2rpm/command/__pycache__
/usr/lib/python3.9/site-packages/pyp2rpm/command/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/command/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/command/__pycache__/extract_dist.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/command/__pycache__/extract_dist.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/command/extract_dist.py
/usr/lib/python3.9/site-packages/pyp2rpm/convertor.py
/usr/lib/python3.9/site-packages/pyp2rpm/dependency_convert.py
/usr/lib/python3.9/site-packages/pyp2rpm/dependency_parser.py
/usr/lib/python3.9/site-packages/pyp2rpm/exceptions.py
/usr/lib/python3.9/site-packages/pyp2rpm/filters.py
/usr/lib/python3.9/site-packages/pyp2rpm/logger.py
/usr/lib/python3.9/site-packages/pyp2rpm/metadata_extractors.py
/usr/lib/python3.9/site-packages/pyp2rpm/module_runners.py
/usr/lib/python3.9/site-packages/pyp2rpm/name_convertor.py
/usr/lib/python3.9/site-packages/pyp2rpm/package_data.py
/usr/lib/python3.9/site-packages/pyp2rpm/package_getters.py
/usr/lib/python3.9/site-packages/pyp2rpm/settings.py
/usr/lib/python3.9/site-packages/pyp2rpm/templates
/usr/lib/python3.9/site-packages/pyp2rpm/templates/epel6.spec
/usr/lib/python3.9/site-packages/pyp2rpm/templates/epel7.spec
/usr/lib/python3.9/site-packages/pyp2rpm/templates/fedora.spec
/usr/lib/python3.9/site-packages/pyp2rpm/templates/macros.spec
/usr/lib/python3.9/site-packages/pyp2rpm/templates/mageia.spec
/usr/lib/python3.9/site-packages/pyp2rpm/templates/pld.spec
/usr/lib/python3.9/site-packages/pyp2rpm/utils.py
/usr/lib/python3.9/site-packages/pyp2rpm/version.py
/usr/lib/python3.9/site-packages/pyp2rpm/virtualenv.py
/usr/share/doc/pyp2rpm
/usr/share/doc/pyp2rpm/README.md
/usr/share/licenses/pyp2rpm
/usr/share/licenses/pyp2rpm/LICENSE
/usr/bin/pyp2rpm
/usr/lib/python3.9/site-packages/pyp2rpm
/usr/lib/python3.9/site-packages/pyp2rpm-3.3.7-py3.9.egg-info
/usr/lib/python3.9/site-packages/pyp2rpm-3.3.7-py3.9.egg-info/PKG-INFO
/usr/lib/python3.9/site-packages/pyp2rpm-3.3.7-py3.9.egg-info/SOURCES.txt
/usr/lib/python3.9/site-packages/pyp2rpm-3.3.7-py3.9.egg-info/dependency_links.txt
/usr/lib/python3.9/site-packages/pyp2rpm-3.3.7-py3.9.egg-info/entry_points.txt
/usr/lib/python3.9/site-packages/pyp2rpm-3.3.7-py3.9.egg-info/requires.txt
/usr/lib/python3.9/site-packages/pyp2rpm-3.3.7-py3.9.egg-info/top_level.txt
/usr/lib/python3.9/site-packages/pyp2rpm/__init__.py
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/archive.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/archive.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/bin.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/bin.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/convertor.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/convertor.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/dependency_convert.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/dependency_convert.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/dependency_parser.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/dependency_parser.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/exceptions.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/exceptions.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/filters.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/filters.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/logger.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/logger.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/metadata_extractors.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/metadata_extractors.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/module_runners.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/module_runners.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/name_convertor.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/name_convertor.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/package_data.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/package_data.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/package_getters.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/package_getters.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/settings.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/settings.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/utils.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/utils.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/version.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/version.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/virtualenv.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/__pycache__/virtualenv.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/archive.py
/usr/lib/python3.9/site-packages/pyp2rpm/bin.py
/usr/lib/python3.9/site-packages/pyp2rpm/command
/usr/lib/python3.9/site-packages/pyp2rpm/command/__init__.py
/usr/lib/python3.9/site-packages/pyp2rpm/command/__pycache__
/usr/lib/python3.9/site-packages/pyp2rpm/command/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/command/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/command/__pycache__/extract_dist.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/command/__pycache__/extract_dist.cpython-39.pyc
/usr/lib/python3.9/site-packages/pyp2rpm/command/extract_dist.py
/usr/lib/python3.9/site-packages/pyp2rpm/convertor.py
/usr/lib/python3.9/site-packages/pyp2rpm/dependency_convert.py
/usr/lib/python3.9/site-packages/pyp2rpm/dependency_parser.py
/usr/lib/python3.9/site-packages/pyp2rpm/exceptions.py
/usr/lib/python3.9/site-packages/pyp2rpm/filters.py
/usr/lib/python3.9/site-packages/pyp2rpm/logger.py
/usr/lib/python3.9/site-packages/pyp2rpm/metadata_extractors.py
/usr/lib/python3.9/site-packages/pyp2rpm/module_runners.py
/usr/lib/python3.9/site-packages/pyp2rpm/name_convertor.py
/usr/lib/python3.9/site-packages/pyp2rpm/package_data.py
/usr/lib/python3.9/site-packages/pyp2rpm/package_getters.py
/usr/lib/python3.9/site-packages/pyp2rpm/settings.py
/usr/lib/python3.9/site-packages/pyp2rpm/templates
/usr/lib/python3.9/site-packages/pyp2rpm/templates/epel6.spec
/usr/lib/python3.9/site-packages/pyp2rpm/templates/epel7.spec
/usr/lib/python3.9/site-packages/pyp2rpm/templates/fedora.spec
/usr/lib/python3.9/site-packages/pyp2rpm/templates/macros.spec
/usr/lib/python3.9/site-packages/pyp2rpm/templates/mageia.spec
/usr/lib/python3.9/site-packages/pyp2rpm/templates/pld.spec
/usr/lib/python3.9/site-packages/pyp2rpm/utils.py
/usr/lib/python3.9/site-packages/pyp2rpm/version.py
/usr/lib/python3.9/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 34 using yum and dnf.