How To Install python38-jinja2 on Rocky Linux 8

In this tutorial we learn how to install python38-jinja2 on Rocky Linux 8. python38-jinja2 is General purpose template engine for python3

Introduction

In this tutorial we learn how to install python38-jinja2 on Rocky Linux 8.

What is python38-jinja2

Jinja2 is a template engine written in pure Python. It provides a Django inspired non-XML syntax but supports inline expressions and an optional sandboxed environment. If you have any exposure to other text-based template languages, such as Smarty or Django, you should feel right at home with Jinja2. It’s both designer and developer friendly by sticking to Python’s principles and adding functionality useful for templating environments.

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

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

sudo dnf -y install python38-jinja2

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

sudo yum -y install python38-jinja2

How To Uninstall python38-jinja2 on Rocky Linux 8

To uninstall only the python38-jinja2 package we can use the following command:

sudo dnf remove python38-jinja2

python38-jinja2 Package Contents on Rocky Linux 8

/usr/lib/python3.8/site-packages/Jinja2-2.10.3-py3.8.egg-info
/usr/lib/python3.8/site-packages/Jinja2-2.10.3-py3.8.egg-info/PKG-INFO
/usr/lib/python3.8/site-packages/Jinja2-2.10.3-py3.8.egg-info/SOURCES.txt
/usr/lib/python3.8/site-packages/Jinja2-2.10.3-py3.8.egg-info/dependency_links.txt
/usr/lib/python3.8/site-packages/Jinja2-2.10.3-py3.8.egg-info/entry_points.txt
/usr/lib/python3.8/site-packages/Jinja2-2.10.3-py3.8.egg-info/requires.txt
/usr/lib/python3.8/site-packages/Jinja2-2.10.3-py3.8.egg-info/top_level.txt
/usr/lib/python3.8/site-packages/jinja2
/usr/lib/python3.8/site-packages/jinja2/__init__.py
/usr/lib/python3.8/site-packages/jinja2/__pycache__
/usr/lib/python3.8/site-packages/jinja2/__pycache__/__init__.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/__init__.cpython-38.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/_compat.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/_compat.cpython-38.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/_identifier.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/_identifier.cpython-38.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/asyncfilters.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/asyncfilters.cpython-38.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/asyncsupport.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/asyncsupport.cpython-38.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/bccache.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/bccache.cpython-38.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/compiler.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/compiler.cpython-38.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/constants.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/constants.cpython-38.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/debug.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/debug.cpython-38.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/defaults.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/defaults.cpython-38.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/environment.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/environment.cpython-38.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/exceptions.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/exceptions.cpython-38.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/ext.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/ext.cpython-38.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/filters.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/filters.cpython-38.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/idtracking.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/idtracking.cpython-38.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/lexer.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/lexer.cpython-38.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/loaders.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/loaders.cpython-38.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/meta.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/meta.cpython-38.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/nativetypes.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/nativetypes.cpython-38.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/nodes.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/nodes.cpython-38.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/optimizer.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/optimizer.cpython-38.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/parser.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/parser.cpython-38.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/runtime.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/runtime.cpython-38.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/sandbox.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/sandbox.cpython-38.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/tests.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/tests.cpython-38.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/utils.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/utils.cpython-38.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/visitor.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/jinja2/__pycache__/visitor.cpython-38.pyc
/usr/lib/python3.8/site-packages/jinja2/_compat.py
/usr/lib/python3.8/site-packages/jinja2/_identifier.py
/usr/lib/python3.8/site-packages/jinja2/asyncfilters.py
/usr/lib/python3.8/site-packages/jinja2/asyncsupport.py
/usr/lib/python3.8/site-packages/jinja2/bccache.py
/usr/lib/python3.8/site-packages/jinja2/compiler.py
/usr/lib/python3.8/site-packages/jinja2/constants.py
/usr/lib/python3.8/site-packages/jinja2/debug.py
/usr/lib/python3.8/site-packages/jinja2/defaults.py
/usr/lib/python3.8/site-packages/jinja2/environment.py
/usr/lib/python3.8/site-packages/jinja2/exceptions.py
/usr/lib/python3.8/site-packages/jinja2/ext.py
/usr/lib/python3.8/site-packages/jinja2/filters.py
/usr/lib/python3.8/site-packages/jinja2/idtracking.py
/usr/lib/python3.8/site-packages/jinja2/lexer.py
/usr/lib/python3.8/site-packages/jinja2/loaders.py
/usr/lib/python3.8/site-packages/jinja2/meta.py
/usr/lib/python3.8/site-packages/jinja2/nativetypes.py
/usr/lib/python3.8/site-packages/jinja2/nodes.py
/usr/lib/python3.8/site-packages/jinja2/optimizer.py
/usr/lib/python3.8/site-packages/jinja2/parser.py
/usr/lib/python3.8/site-packages/jinja2/runtime.py
/usr/lib/python3.8/site-packages/jinja2/sandbox.py
/usr/lib/python3.8/site-packages/jinja2/tests.py
/usr/lib/python3.8/site-packages/jinja2/utils.py
/usr/lib/python3.8/site-packages/jinja2/visitor.py
/usr/share/doc/python38-jinja2
/usr/share/doc/python38-jinja2/CHANGES.rst
/usr/share/doc/python38-jinja2/examples
/usr/share/doc/python38-jinja2/examples/basic
/usr/share/doc/python38-jinja2/examples/basic/cycle.py
/usr/share/doc/python38-jinja2/examples/basic/debugger.py
/usr/share/doc/python38-jinja2/examples/basic/inheritance.py
/usr/share/doc/python38-jinja2/examples/basic/templates
/usr/share/doc/python38-jinja2/examples/basic/templates/broken.html
/usr/share/doc/python38-jinja2/examples/basic/templates/subbroken.html
/usr/share/doc/python38-jinja2/examples/basic/test.py
/usr/share/doc/python38-jinja2/examples/basic/test_filter_and_linestatements.py
/usr/share/doc/python38-jinja2/examples/basic/test_loop_filter.py
/usr/share/doc/python38-jinja2/examples/basic/translate.py
/usr/share/doc/python38-jinja2/examples/bench.py
/usr/share/doc/python38-jinja2/examples/profile.py
/usr/share/doc/python38-jinja2/examples/rwbench
/usr/share/doc/python38-jinja2/examples/rwbench/django
/usr/share/doc/python38-jinja2/examples/rwbench/django/_form.html
/usr/share/doc/python38-jinja2/examples/rwbench/django/_input_field.html
/usr/share/doc/python38-jinja2/examples/rwbench/django/_textarea.html
/usr/share/doc/python38-jinja2/examples/rwbench/django/index.html
/usr/share/doc/python38-jinja2/examples/rwbench/django/layout.html
/usr/share/doc/python38-jinja2/examples/rwbench/djangoext.py
/usr/share/doc/python38-jinja2/examples/rwbench/genshi
/usr/share/doc/python38-jinja2/examples/rwbench/genshi/helpers.html
/usr/share/doc/python38-jinja2/examples/rwbench/genshi/index.html
/usr/share/doc/python38-jinja2/examples/rwbench/genshi/layout.html
/usr/share/doc/python38-jinja2/examples/rwbench/jinja
/usr/share/doc/python38-jinja2/examples/rwbench/jinja/helpers.html
/usr/share/doc/python38-jinja2/examples/rwbench/jinja/index.html
/usr/share/doc/python38-jinja2/examples/rwbench/jinja/layout.html
/usr/share/doc/python38-jinja2/examples/rwbench/mako
/usr/share/doc/python38-jinja2/examples/rwbench/mako/helpers.html
/usr/share/doc/python38-jinja2/examples/rwbench/mako/index.html
/usr/share/doc/python38-jinja2/examples/rwbench/mako/layout.html
/usr/share/doc/python38-jinja2/examples/rwbench/rwbench.py
/usr/share/doc/python38-jinja2/ext
/usr/share/doc/python38-jinja2/ext/Vim
/usr/share/doc/python38-jinja2/ext/Vim/jinja.vim
/usr/share/doc/python38-jinja2/ext/django2jinja
/usr/share/doc/python38-jinja2/ext/django2jinja/django2jinja.py
/usr/share/doc/python38-jinja2/ext/django2jinja/example.py
/usr/share/doc/python38-jinja2/ext/django2jinja/templates
/usr/share/doc/python38-jinja2/ext/django2jinja/templates/index.html
/usr/share/doc/python38-jinja2/ext/django2jinja/templates/layout.html
/usr/share/doc/python38-jinja2/ext/django2jinja/templates/subtemplate.html
/usr/share/doc/python38-jinja2/ext/djangojinja2.py
/usr/share/doc/python38-jinja2/ext/inlinegettext.py
/usr/share/doc/python38-jinja2/ext/jinja.el
/usr/share/licenses/python38-jinja2
/usr/share/licenses/python38-jinja2/LICENSE.rst

References

Summary

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