How To Install python3-psutil on Fedora 36

In this tutorial we learn how to install python3-psutil in Fedora 36. python3-psutil is A process and system utilities module for Python

Introduction

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

What is python3-psutil

psutil is a module providing an interface for retrieving information on all running processes and system utilization (CPU, memory, disks, network, users) in a portable way by using Python 3, implementing many functionalities offered by command line tools such as ifconfig, nice, ionice, iostat, iotop, uptime, pidof, tty, who, taskset, pmap.

We can use yum or dnf to install python3-psutil on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-psutil.

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

sudo dnf -y install python3-psutil

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

sudo yum -y install python3-psutil

How To Uninstall python3-psutil on Fedora 36

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

sudo dnf remove python3-psutil

python3-psutil Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/97
/usr/lib/.build-id/97/2fbab6e6740108b890e76089198f110bc2bc5a
/usr/lib/.build-id/fd
/usr/lib/.build-id/fd/cb4c8b37d2ebd94232819399ea5f0fafb3911c
/usr/lib64/python3.10/site-packages/psutil
/usr/lib64/python3.10/site-packages/psutil-5.8.0-py3.10.egg-info
/usr/lib64/python3.10/site-packages/psutil-5.8.0-py3.10.egg-info/PKG-INFO
/usr/lib64/python3.10/site-packages/psutil-5.8.0-py3.10.egg-info/SOURCES.txt
/usr/lib64/python3.10/site-packages/psutil-5.8.0-py3.10.egg-info/dependency_links.txt
/usr/lib64/python3.10/site-packages/psutil-5.8.0-py3.10.egg-info/not-zip-safe
/usr/lib64/python3.10/site-packages/psutil-5.8.0-py3.10.egg-info/requires.txt
/usr/lib64/python3.10/site-packages/psutil-5.8.0-py3.10.egg-info/top_level.txt
/usr/lib64/python3.10/site-packages/psutil/__init__.py
/usr/lib64/python3.10/site-packages/psutil/__pycache__
/usr/lib64/python3.10/site-packages/psutil/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/psutil/__pycache__/__init__.cpython-310.pyc
/usr/lib64/python3.10/site-packages/psutil/__pycache__/_common.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/psutil/__pycache__/_common.cpython-310.pyc
/usr/lib64/python3.10/site-packages/psutil/__pycache__/_compat.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/psutil/__pycache__/_compat.cpython-310.pyc
/usr/lib64/python3.10/site-packages/psutil/__pycache__/_psaix.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/psutil/__pycache__/_psaix.cpython-310.pyc
/usr/lib64/python3.10/site-packages/psutil/__pycache__/_psbsd.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/psutil/__pycache__/_psbsd.cpython-310.pyc
/usr/lib64/python3.10/site-packages/psutil/__pycache__/_pslinux.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/psutil/__pycache__/_pslinux.cpython-310.pyc
/usr/lib64/python3.10/site-packages/psutil/__pycache__/_psosx.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/psutil/__pycache__/_psosx.cpython-310.pyc
/usr/lib64/python3.10/site-packages/psutil/__pycache__/_psposix.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/psutil/__pycache__/_psposix.cpython-310.pyc
/usr/lib64/python3.10/site-packages/psutil/__pycache__/_pssunos.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/psutil/__pycache__/_pssunos.cpython-310.pyc
/usr/lib64/python3.10/site-packages/psutil/__pycache__/_pswindows.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/psutil/__pycache__/_pswindows.cpython-310.pyc
/usr/lib64/python3.10/site-packages/psutil/_common.py
/usr/lib64/python3.10/site-packages/psutil/_compat.py
/usr/lib64/python3.10/site-packages/psutil/_psaix.py
/usr/lib64/python3.10/site-packages/psutil/_psbsd.py
/usr/lib64/python3.10/site-packages/psutil/_pslinux.py
/usr/lib64/python3.10/site-packages/psutil/_psosx.py
/usr/lib64/python3.10/site-packages/psutil/_psposix.py
/usr/lib64/python3.10/site-packages/psutil/_pssunos.py
/usr/lib64/python3.10/site-packages/psutil/_psutil_linux.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/psutil/_psutil_posix.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/psutil/_pswindows.py
/usr/share/doc/python3-psutil
/usr/share/doc/python3-psutil/CREDITS
/usr/share/doc/python3-psutil/HISTORY.rst
/usr/share/doc/python3-psutil/README.rst
/usr/share/licenses/python3-psutil
/usr/share/licenses/python3-psutil/LICENSE

References

Summary

In this tutorial we learn how to install python3-psutil on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).