How To Install python3-attrs on Rocky Linux 8

In this tutorial we learn how to install python3-attrs on Rocky Linux 8. python3-attrs is Python attributes without boilerplate

Introduction

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

What is python3-attrs

attrs is an MIT-licensed Python package with class decorators that ease the chores of implementing the most common attribute-related object protocols.

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

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

sudo dnf -y install python3-attrs

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

sudo yum -y install python3-attrs

How To Uninstall python3-attrs on Rocky Linux 8

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

sudo dnf remove python3-attrs

python3-attrs Package Contents on Rocky Linux 8

/usr/lib/python3.6/site-packages/attr
/usr/lib/python3.6/site-packages/attr/__init__.py
/usr/lib/python3.6/site-packages/attr/__pycache__
/usr/lib/python3.6/site-packages/attr/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/attr/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/attr/__pycache__/_compat.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/attr/__pycache__/_compat.cpython-36.pyc
/usr/lib/python3.6/site-packages/attr/__pycache__/_config.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/attr/__pycache__/_config.cpython-36.pyc
/usr/lib/python3.6/site-packages/attr/__pycache__/_funcs.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/attr/__pycache__/_funcs.cpython-36.pyc
/usr/lib/python3.6/site-packages/attr/__pycache__/_make.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/attr/__pycache__/_make.cpython-36.pyc
/usr/lib/python3.6/site-packages/attr/__pycache__/converters.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/attr/__pycache__/converters.cpython-36.pyc
/usr/lib/python3.6/site-packages/attr/__pycache__/exceptions.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/attr/__pycache__/exceptions.cpython-36.pyc
/usr/lib/python3.6/site-packages/attr/__pycache__/filters.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/attr/__pycache__/filters.cpython-36.pyc
/usr/lib/python3.6/site-packages/attr/__pycache__/validators.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/attr/__pycache__/validators.cpython-36.pyc
/usr/lib/python3.6/site-packages/attr/_compat.py
/usr/lib/python3.6/site-packages/attr/_config.py
/usr/lib/python3.6/site-packages/attr/_funcs.py
/usr/lib/python3.6/site-packages/attr/_make.py
/usr/lib/python3.6/site-packages/attr/converters.py
/usr/lib/python3.6/site-packages/attr/exceptions.py
/usr/lib/python3.6/site-packages/attr/filters.py
/usr/lib/python3.6/site-packages/attr/validators.py
/usr/lib/python3.6/site-packages/attrs-17.4.0-py3.6.egg-info
/usr/lib/python3.6/site-packages/attrs-17.4.0-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/attrs-17.4.0-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/attrs-17.4.0-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/attrs-17.4.0-py3.6.egg-info/not-zip-safe
/usr/lib/python3.6/site-packages/attrs-17.4.0-py3.6.egg-info/requires.txt
/usr/lib/python3.6/site-packages/attrs-17.4.0-py3.6.egg-info/top_level.txt
/usr/share/doc/python3-attrs
/usr/share/doc/python3-attrs/AUTHORS.rst
/usr/share/doc/python3-attrs/README.rst
/usr/share/licenses/python3-attrs
/usr/share/licenses/python3-attrs/LICENSE

References

Summary

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