How To Install python-prettytable.noarch on Amazon Linux 2
Introduction
In this tutorial we learn how to install python-prettytable.noarch on Amazon Linux 2.
What is python-prettytable.noarch
PrettyTable is a simple Python library designed to make it quick and easy to represent tabular data in visually appealing ASCII tables. It was inspired by the ASCII tables used in the PostgreSQL shell psql. PrettyTable allows for selection of which columns are to be printed, independent alignment of columns (left or right justified or centred) and printing of “sub-tables” by specifying a row range.
We can use yum to install python-prettytable.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install python-prettytable.noarch.
Install python-prettytable.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-prettytable.noarch using yum by running the following command:
sudo yum -y install python-prettytable.noarch
How To Uninstall python-prettytable.noarch on Amazon Linux 2
To uninstall only the python-prettytable.noarch package we can use the following command:
sudo yum remove python-prettytable.noarch
python-prettytable.noarch Package Contents on Amazon Linux 2
/usr/lib/python2.7/site-packages/prettytable-0.7.2-py2.7.egg-info
/usr/lib/python2.7/site-packages/prettytable-0.7.2-py2.7.egg-info/PKG-INFO
/usr/lib/python2.7/site-packages/prettytable-0.7.2-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/prettytable-0.7.2-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/prettytable-0.7.2-py2.7.egg-info/top_level.txt
/usr/lib/python2.7/site-packages/prettytable.py
/usr/lib/python2.7/site-packages/prettytable.pyc
/usr/lib/python2.7/site-packages/prettytable.pyo
/usr/share/doc/python-prettytable-0.7.2
/usr/share/doc/python-prettytable-0.7.2/CHANGELOG
/usr/share/doc/python-prettytable-0.7.2/COPYING
/usr/share/doc/python-prettytable-0.7.2/README
References
Summary
In this tutorial we learn how to install python-prettytable.noarch on Amazon Linux 2 using yum.