How To Install python3-snaptime on Rocky Linux 8

In this tutorial we learn how to install python3-snaptime on Rocky Linux 8. python3-snaptime is Transforming timestamps simply

Introduction

In this tutorial we learn how to install python3-snaptime on Rocky Linux 8.

What is python3-snaptime

The snaptime package is about transforming timestamps simply.

We can use yum or dnf to install python3-snaptime on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-snaptime.

Install python3-snaptime 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-snaptime using dnf by running the following command:

sudo dnf -y install python3-snaptime

Install python3-snaptime 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-snaptime using yum by running the following command:

sudo yum -y install python3-snaptime

How To Uninstall python3-snaptime on Rocky Linux 8

To uninstall only the python3-snaptime package we can use the following command:

sudo dnf remove python3-snaptime

python3-snaptime Package Contents on Rocky Linux 8

/usr/lib/python3.6/site-packages/snaptime-0.2.4-py3.6.egg-info
/usr/lib/python3.6/site-packages/snaptime/__init__.py
/usr/lib/python3.6/site-packages/snaptime/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/snaptime/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/snaptime/__pycache__/main.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/snaptime/__pycache__/main.cpython-36.pyc
/usr/lib/python3.6/site-packages/snaptime/main.py
/usr/share/doc/python3-snaptime
/usr/share/doc/python3-snaptime/README.md
/usr/share/licenses/python3-snaptime
/usr/share/licenses/python3-snaptime/LICENSE.txt

References

Summary

In this tutorial we learn how to install python3-snaptime on Rocky Linux 8 using yum and dnf.