How To Install python-which.noarch on Amazon Linux 2
Introduction
In this tutorial we learn how to install python-which.noarch
on Amazon Linux 2.
What is python-which.noarch
which.py is a small which replacement. It has the following features * it can print all matches on the PATH; * it can note “near misses” on the PATH (e.g. files that match but may not, say, have execute permissions); and * it can be used as a Python module.
We can use yum
to install python-which.noarch
on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install python-which.noarch.
Install python-which.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-which.noarch
using yum
by running the following command:
sudo yum -y install python-which.noarch
How To Uninstall python-which.noarch on Amazon Linux 2
To uninstall only the python-which.noarch
package we can use the following command:
sudo yum remove python-which.noarch
python-which.noarch Package Contents on Amazon Linux 2
/usr/bin/which-python
/usr/lib/python2.7/site-packages/which-1.1.0-py2.7.egg-info
/usr/lib/python2.7/site-packages/which.py
/usr/lib/python2.7/site-packages/which.pyc
/usr/lib/python2.7/site-packages/which.pyo
/usr/share/doc/python-which-1.1.0
/usr/share/doc/python-which-1.1.0/LICENSE.txt
/usr/share/doc/python-which-1.1.0/README.txt
/usr/share/doc/python-which-1.1.0/TODO.txt
References
Summary
In this tutorial we learn how to install python-which.noarch
on Amazon Linux 2 using yum.