How To Install python-decorator.noarch on Amazon Linux 2
Introduction
In this tutorial we learn how to install python-decorator.noarch
on Amazon Linux 2.
What is python-decorator.noarch
The aim of the decorator module is to simplify the usage of decorators for the average programmer, and to popularize decorators usage giving examples of useful decorators, such as memoize, tracing, redirecting_stdout, locked, etc. The core of this module is a decorator factory called decorator.
We can use yum
to install python-decorator.noarch
on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install python-decorator.noarch.
Install python-decorator.noarch on Amazon Linux 2 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install python-decorator.noarch
using yum
by running the following command:
sudo yum -y install python-decorator.noarch
How To Uninstall python-decorator.noarch on Amazon Linux 2
To uninstall only the python-decorator.noarch
package we can use the following command:
sudo yum remove python-decorator.noarch
python-decorator.noarch Package Contents on Amazon Linux 2
/usr/lib/python2.7/site-packages/decorator-3.4.0-py2.7.egg-info
/usr/lib/python2.7/site-packages/decorator-3.4.0-py2.7.egg-info/PKG-INFO
/usr/lib/python2.7/site-packages/decorator-3.4.0-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/decorator-3.4.0-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/decorator-3.4.0-py2.7.egg-info/not-zip-safe
/usr/lib/python2.7/site-packages/decorator-3.4.0-py2.7.egg-info/top_level.txt
/usr/lib/python2.7/site-packages/decorator.py
/usr/lib/python2.7/site-packages/decorator.pyc
/usr/lib/python2.7/site-packages/decorator.pyo
/usr/share/doc/python-decorator-3.4.0
/usr/share/doc/python-decorator-3.4.0/README.txt
/usr/share/doc/python-decorator-3.4.0/documentation.py
References
Summary
In this tutorial we learn how to install python-decorator.noarch
on Amazon Linux 2 using yum.