How To Install python3-uptime on Fedora 36

In this tutorial we learn how to install python3-uptime in Fedora 36. python3-uptime is Cross-platform uptime library

Introduction

In this tutorial we learn how to install python3-uptime on Fedora 36.

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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-uptime.

Install python3-uptime on Fedora 36 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 Fedora 36 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 Fedora 36

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

sudo dnf remove python3-uptime

python3-uptime Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/c9
/usr/lib/.build-id/c9/7165fb118210538ca8032fa4ce1cb3d3ab1669
/usr/lib64/python3.10/site-packages/uptime
/usr/lib64/python3.10/site-packages/uptime-3.0.1-py3.10.egg-info
/usr/lib64/python3.10/site-packages/uptime/__init__.py
/usr/lib64/python3.10/site-packages/uptime/__main__.py
/usr/lib64/python3.10/site-packages/uptime/__pycache__
/usr/lib64/python3.10/site-packages/uptime/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/uptime/__pycache__/__init__.cpython-310.pyc
/usr/lib64/python3.10/site-packages/uptime/__pycache__/__main__.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/uptime/__pycache__/__main__.cpython-310.pyc
/usr/lib64/python3.10/site-packages/uptime/_posix.cpython-310-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 Fedora 36 using yum and [dnf]((/fedora/36/dnf/).