How To Install python-di.noarch on Amazon Linux 2
Introduction
In this tutorial we learn how to install python-di.noarch
on Amazon Linux 2.
What is python-di.noarch
This python package provides a “di” module. The module contains a couple of decorators which try to implement the Dependency Injection (IoC) pattern without requiring the user to change local variables in his methods. It is intended to be used in unit testing environments.
We can use yum
to install python-di.noarch
on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install python-di.noarch.
Install python-di.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-di.noarch
using yum
by running the following command:
sudo yum -y install python-di.noarch
How To Uninstall python-di.noarch on Amazon Linux 2
To uninstall only the python-di.noarch
package we can use the following command:
sudo yum remove python-di.noarch
python-di.noarch Package Contents on Amazon Linux 2
/usr/lib/python2.7/site-packages/di
/usr/lib/python2.7/site-packages/di-0.3-py2.7.egg-info
/usr/lib/python2.7/site-packages/di-0.3-py2.7.egg-info/PKG-INFO
/usr/lib/python2.7/site-packages/di-0.3-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/di-0.3-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/di-0.3-py2.7.egg-info/top_level.txt
/usr/lib/python2.7/site-packages/di/__init__.py
/usr/lib/python2.7/site-packages/di/__init__.pyc
/usr/lib/python2.7/site-packages/di/__init__.pyo
/usr/lib/python2.7/site-packages/di/core.py
/usr/lib/python2.7/site-packages/di/core.pyc
/usr/lib/python2.7/site-packages/di/core.pyo
/usr/lib/python2.7/site-packages/di/core_test.py
/usr/lib/python2.7/site-packages/di/core_test.pyc
/usr/lib/python2.7/site-packages/di/core_test.pyo
/usr/share/doc/python-di-0.3
/usr/share/doc/python-di-0.3/COPYING
/usr/share/doc/python-di-0.3/README
References
Summary
In this tutorial we learn how to install python-di.noarch
on Amazon Linux 2 using yum.