How To Install python2-attrs on Rocky Linux 8

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

Introduction

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

What is python2-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 python2-attrs on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python2-attrs.

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

sudo dnf -y install python2-attrs

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

sudo yum -y install python2-attrs

How To Uninstall python2-attrs on Rocky Linux 8

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

sudo dnf remove python2-attrs

python2-attrs Package Contents on Rocky Linux 8

/usr/lib/python2.7/site-packages/attr
/usr/lib/python2.7/site-packages/attr/__init__.py
/usr/lib/python2.7/site-packages/attr/__init__.pyc
/usr/lib/python2.7/site-packages/attr/__init__.pyo
/usr/lib/python2.7/site-packages/attr/_compat.py
/usr/lib/python2.7/site-packages/attr/_compat.pyc
/usr/lib/python2.7/site-packages/attr/_compat.pyo
/usr/lib/python2.7/site-packages/attr/_config.py
/usr/lib/python2.7/site-packages/attr/_config.pyc
/usr/lib/python2.7/site-packages/attr/_config.pyo
/usr/lib/python2.7/site-packages/attr/_funcs.py
/usr/lib/python2.7/site-packages/attr/_funcs.pyc
/usr/lib/python2.7/site-packages/attr/_funcs.pyo
/usr/lib/python2.7/site-packages/attr/_make.py
/usr/lib/python2.7/site-packages/attr/_make.pyc
/usr/lib/python2.7/site-packages/attr/_make.pyo
/usr/lib/python2.7/site-packages/attr/converters.py
/usr/lib/python2.7/site-packages/attr/converters.pyc
/usr/lib/python2.7/site-packages/attr/converters.pyo
/usr/lib/python2.7/site-packages/attr/exceptions.py
/usr/lib/python2.7/site-packages/attr/exceptions.pyc
/usr/lib/python2.7/site-packages/attr/exceptions.pyo
/usr/lib/python2.7/site-packages/attr/filters.py
/usr/lib/python2.7/site-packages/attr/filters.pyc
/usr/lib/python2.7/site-packages/attr/filters.pyo
/usr/lib/python2.7/site-packages/attr/validators.py
/usr/lib/python2.7/site-packages/attr/validators.pyc
/usr/lib/python2.7/site-packages/attr/validators.pyo
/usr/lib/python2.7/site-packages/attrs-17.4.0-py2.7.egg-info
/usr/lib/python2.7/site-packages/attrs-17.4.0-py2.7.egg-info/PKG-INFO
/usr/lib/python2.7/site-packages/attrs-17.4.0-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/attrs-17.4.0-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/attrs-17.4.0-py2.7.egg-info/not-zip-safe
/usr/lib/python2.7/site-packages/attrs-17.4.0-py2.7.egg-info/requires.txt
/usr/lib/python2.7/site-packages/attrs-17.4.0-py2.7.egg-info/top_level.txt
/usr/share/doc/python2-attrs
/usr/share/doc/python2-attrs/AUTHORS.rst
/usr/share/doc/python2-attrs/README.rst
/usr/share/licenses/python2-attrs
/usr/share/licenses/python2-attrs/LICENSE

References

Summary

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