How To Install python3-preprocess on Fedora 36

In this tutorial we learn how to install python3-preprocess in Fedora 36. python3-preprocess is A portable multi-language file Python3 preprocessor

Introduction

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

What is python3-preprocess

There are millions of templating systems out there (most of them developed for the web). This isn’t one of those, though it does share some basics a markup syntax for templates that are processed to give resultant text output. The main difference with preprocess.py is that its syntax is hidden in comments (whatever the syntax for comments may be in the target file type) so that the file can still have valid syntax. A comparison with the C preprocessor is more apt. preprocess.py is targeted at build systems that deal with many types of files. Languages for which it works include CSS, IDL, TeX, Fortran, PHP, Java, Shell scripts (Bash, CSH, etc.) and C#. Preprocess is usable both as a command line app and as a Python module.

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

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

sudo dnf -y install python3-preprocess

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

sudo yum -y install python3-preprocess

How To Uninstall python3-preprocess on Fedora 36

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

sudo dnf remove python3-preprocess

python3-preprocess Package Contents on Fedora 36

/usr/bin/preprocess
/usr/bin/preprocess-3.10
/usr/bin/python3.10-preprocess
/usr/lib/python3.10/site-packages/__pycache__/preprocess.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/__pycache__/preprocess.cpython-310.pyc
/usr/lib/python3.10/site-packages/preprocess-2.0.0-py3.10.egg-info
/usr/lib/python3.10/site-packages/preprocess-2.0.0-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/preprocess-2.0.0-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/preprocess-2.0.0-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/preprocess-2.0.0-py3.10.egg-info/entry_points.txt
/usr/lib/python3.10/site-packages/preprocess-2.0.0-py3.10.egg-info/requires.txt
/usr/lib/python3.10/site-packages/preprocess-2.0.0-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/preprocess.py
/usr/share/doc/python3-preprocess
/usr/share/doc/python3-preprocess/BUGS.txt
/usr/share/doc/python3-preprocess/CONTRIBUTORS.txt
/usr/share/doc/python3-preprocess/README.md
/usr/share/doc/python3-preprocess/TODO.txt
/usr/share/licenses/python3-preprocess
/usr/share/licenses/python3-preprocess/LICENSE.txt

References

Summary

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