How To Install python-ntplib.noarch on Amazon Linux 2
Introduction
In this tutorial we learn how to install python-ntplib.noarch on Amazon Linux 2.
What is python-ntplib.noarch
The ntplib is a python module that offers a simple interface to query NTP servers. It also provides utility functions to translate NTP fields’ values to text (mode, leap indicator…). Since it’s pure Python, and only depends on core modules, it should work on any platform with a Python implementation.
We can use yum to install python-ntplib.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install python-ntplib.noarch.
Install python-ntplib.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-ntplib.noarch using yum by running the following command:
sudo yum -y install python-ntplib.noarch
How To Uninstall python-ntplib.noarch on Amazon Linux 2
To uninstall only the python-ntplib.noarch package we can use the following command:
sudo yum remove python-ntplib.noarch
python-ntplib.noarch Package Contents on Amazon Linux 2
/usr/lib/python2.7/site-packages/ntplib-0.3.2-py2.7.egg-info
/usr/lib/python2.7/site-packages/ntplib.py
/usr/lib/python2.7/site-packages/ntplib.pyc
/usr/lib/python2.7/site-packages/ntplib.pyo
/usr/share/doc/python-ntplib-0.3.2
/usr/share/doc/python-ntplib-0.3.2/CHANGELOG
/usr/share/doc/python-ntplib-0.3.2/COPYING.LESSER
References
Summary
In this tutorial we learn how to install python-ntplib.noarch on Amazon Linux 2 using yum.