How To Install python3-blessed on Rocky Linux 8

In this tutorial we learn how to install python3-blessed on Rocky Linux 8. python3-blessed is A thin, practical wrapper around terminal capabilities in Python

Introduction

In this tutorial we learn how to install python3-blessed on Rocky Linux 8.

What is python3-blessed

Blessed is a thin, practical wrapper around terminal styling, screen positioning, and keyboard input. It provides - Styles, color, and maybe a little positioning without necessarily clearing the whole screen first. - Works great with standard Python string formatting. - Provides up-to-the-moment terminal height and width, so you can respond to terminal size changes. - Avoids making a mess if the output gets piped to a non-terminal to any file-like object such as StringIO, files, or pipes. - Uses the terminfo(5) database so it works with any terminal type and supports any terminal capability tparm. - Keeps a minimum of internal state, so you can feel free to mix and match with calls to curses or whatever other terminal libraries you like. - Provides plenty of context managers to safely express terminal modes, automatically restoring the terminal to a safe state on exit. - Act intelligently when somebody redirects your output to a file, omitting all of the terminal sequences such as styling, colors, or positioning. - Dead-simple keyboard handling system’s preferred locale and supports application/arrow keys. - Allows the printable length of strings containing sequences to be determined.

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

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

sudo dnf -y install python3-blessed

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

sudo yum -y install python3-blessed

How To Uninstall python3-blessed on Rocky Linux 8

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

sudo dnf remove python3-blessed

python3-blessed Package Contents on Rocky Linux 8

/usr/lib/python3.6/site-packages/blessed
/usr/lib/python3.6/site-packages/blessed-1.18.1-py3.6.egg-info
/usr/lib/python3.6/site-packages/blessed-1.18.1-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/blessed-1.18.1-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/blessed-1.18.1-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/blessed-1.18.1-py3.6.egg-info/not-zip-safe
/usr/lib/python3.6/site-packages/blessed-1.18.1-py3.6.egg-info/requires.txt
/usr/lib/python3.6/site-packages/blessed-1.18.1-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/blessed/__init__.py
/usr/lib/python3.6/site-packages/blessed/__pycache__
/usr/lib/python3.6/site-packages/blessed/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/blessed/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/blessed/__pycache__/_capabilities.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/blessed/__pycache__/_capabilities.cpython-36.pyc
/usr/lib/python3.6/site-packages/blessed/__pycache__/color.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/blessed/__pycache__/color.cpython-36.pyc
/usr/lib/python3.6/site-packages/blessed/__pycache__/colorspace.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/blessed/__pycache__/colorspace.cpython-36.pyc
/usr/lib/python3.6/site-packages/blessed/__pycache__/formatters.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/blessed/__pycache__/formatters.cpython-36.pyc
/usr/lib/python3.6/site-packages/blessed/__pycache__/keyboard.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/blessed/__pycache__/keyboard.cpython-36.pyc
/usr/lib/python3.6/site-packages/blessed/__pycache__/sequences.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/blessed/__pycache__/sequences.cpython-36.pyc
/usr/lib/python3.6/site-packages/blessed/__pycache__/terminal.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/blessed/__pycache__/terminal.cpython-36.pyc
/usr/lib/python3.6/site-packages/blessed/__pycache__/win_terminal.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/blessed/__pycache__/win_terminal.cpython-36.pyc
/usr/lib/python3.6/site-packages/blessed/_capabilities.py
/usr/lib/python3.6/site-packages/blessed/_capabilities.pyi
/usr/lib/python3.6/site-packages/blessed/color.py
/usr/lib/python3.6/site-packages/blessed/color.pyi
/usr/lib/python3.6/site-packages/blessed/colorspace.py
/usr/lib/python3.6/site-packages/blessed/colorspace.pyi
/usr/lib/python3.6/site-packages/blessed/formatters.py
/usr/lib/python3.6/site-packages/blessed/formatters.pyi
/usr/lib/python3.6/site-packages/blessed/keyboard.py
/usr/lib/python3.6/site-packages/blessed/keyboard.pyi
/usr/lib/python3.6/site-packages/blessed/py.typed
/usr/lib/python3.6/site-packages/blessed/sequences.py
/usr/lib/python3.6/site-packages/blessed/sequences.pyi
/usr/lib/python3.6/site-packages/blessed/terminal.py
/usr/lib/python3.6/site-packages/blessed/terminal.pyi
/usr/lib/python3.6/site-packages/blessed/win_terminal.py
/usr/lib/python3.6/site-packages/blessed/win_terminal.pyi
/usr/share/doc/python3-blessed
/usr/share/doc/python3-blessed/README.rst
/usr/share/doc/python3-blessed/api.rst
/usr/share/doc/python3-blessed/colors.rst
/usr/share/doc/python3-blessed/examples.rst
/usr/share/doc/python3-blessed/history.rst
/usr/share/doc/python3-blessed/index.rst
/usr/share/doc/python3-blessed/intro.rst
/usr/share/doc/python3-blessed/keyboard.rst
/usr/share/doc/python3-blessed/location.rst
/usr/share/doc/python3-blessed/measuring.rst
/usr/share/doc/python3-blessed/project.rst
/usr/share/doc/python3-blessed/terminal.rst
/usr/share/licenses/python3-blessed
/usr/share/licenses/python3-blessed/LICENSE

References

Summary

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