How To Install python3-uptime on Rocky Linux 8
Introduction
In this tutorial we learn how to install python3-uptime
on Rocky Linux 8.
What is python3-uptime
This module provides a cross-platform way to retrieve system uptime and boot time.
We can use yum
or dnf
to install python3-uptime
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-uptime.
Install python3-uptime on Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install python3-uptime
using dnf
by running the following command:
sudo dnf -y install python3-uptime
Install python3-uptime on Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install python3-uptime
using yum
by running the following command:
sudo yum -y install python3-uptime
How To Uninstall python3-uptime on Rocky Linux 8
To uninstall only the python3-uptime
package we can use the following command:
sudo dnf remove python3-uptime
python3-uptime Package Contents on Rocky Linux 8
/usr/lib/.build-id
/usr/lib/.build-id/14
/usr/lib/.build-id/14/98a1c0e0e104bafc290469e61d75f6a99013a7
/usr/lib64/python3.6/site-packages/uptime
/usr/lib64/python3.6/site-packages/uptime-3.0.1-py3.6.egg-info
/usr/lib64/python3.6/site-packages/uptime/__init__.py
/usr/lib64/python3.6/site-packages/uptime/__main__.py
/usr/lib64/python3.6/site-packages/uptime/__pycache__
/usr/lib64/python3.6/site-packages/uptime/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/uptime/__pycache__/__init__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/uptime/__pycache__/__main__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/uptime/__pycache__/__main__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/uptime/_posix.cpython-36m-x86_64-linux-gnu.so
/usr/share/doc/python3-uptime
/usr/share/doc/python3-uptime/README.txt
/usr/share/licenses/python3-uptime
/usr/share/licenses/python3-uptime/COPYING.txt
References
Summary
In this tutorial we learn how to install python3-uptime
on Rocky Linux 8 using yum and dnf.