How To Install python3-psutil on Rocky Linux 8

In this tutorial we learn how to install python3-psutil on Rocky Linux 8. python3-psutil is A process and system utilities module for Python

Introduction

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

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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-psutil.

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

sudo dnf -y install python3-psutil

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

sudo yum -y install python3-psutil

How To Uninstall python3-psutil on Rocky Linux 8

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

sudo dnf remove python3-psutil

python3-psutil Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/06
/usr/lib/.build-id/06/6f08336ea0522437bc3cce5d09a32945b58e79
/usr/lib/.build-id/e9
/usr/lib/.build-id/e9/3313cdef4942877166597f365871cc1bab4c0c
/usr/lib64/python3.6/site-packages/psutil
/usr/lib64/python3.6/site-packages/psutil-5.4.3-py3.6.egg-info
/usr/lib64/python3.6/site-packages/psutil-5.4.3-py3.6.egg-info/PKG-INFO
/usr/lib64/python3.6/site-packages/psutil-5.4.3-py3.6.egg-info/SOURCES.txt
/usr/lib64/python3.6/site-packages/psutil-5.4.3-py3.6.egg-info/dependency_links.txt
/usr/lib64/python3.6/site-packages/psutil-5.4.3-py3.6.egg-info/not-zip-safe
/usr/lib64/python3.6/site-packages/psutil-5.4.3-py3.6.egg-info/top_level.txt
/usr/lib64/python3.6/site-packages/psutil/__init__.py
/usr/lib64/python3.6/site-packages/psutil/__pycache__
/usr/lib64/python3.6/site-packages/psutil/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/psutil/__pycache__/__init__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/psutil/__pycache__/_common.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/psutil/__pycache__/_common.cpython-36.pyc
/usr/lib64/python3.6/site-packages/psutil/__pycache__/_compat.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/psutil/__pycache__/_compat.cpython-36.pyc
/usr/lib64/python3.6/site-packages/psutil/__pycache__/_exceptions.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/psutil/__pycache__/_exceptions.cpython-36.pyc
/usr/lib64/python3.6/site-packages/psutil/__pycache__/_psaix.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/psutil/__pycache__/_psaix.cpython-36.pyc
/usr/lib64/python3.6/site-packages/psutil/__pycache__/_psbsd.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/psutil/__pycache__/_psbsd.cpython-36.pyc
/usr/lib64/python3.6/site-packages/psutil/__pycache__/_pslinux.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/psutil/__pycache__/_pslinux.cpython-36.pyc
/usr/lib64/python3.6/site-packages/psutil/__pycache__/_psosx.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/psutil/__pycache__/_psosx.cpython-36.pyc
/usr/lib64/python3.6/site-packages/psutil/__pycache__/_psposix.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/psutil/__pycache__/_psposix.cpython-36.pyc
/usr/lib64/python3.6/site-packages/psutil/__pycache__/_pssunos.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/psutil/__pycache__/_pssunos.cpython-36.pyc
/usr/lib64/python3.6/site-packages/psutil/__pycache__/_pswindows.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/psutil/__pycache__/_pswindows.cpython-36.pyc
/usr/lib64/python3.6/site-packages/psutil/_common.py
/usr/lib64/python3.6/site-packages/psutil/_compat.py
/usr/lib64/python3.6/site-packages/psutil/_exceptions.py
/usr/lib64/python3.6/site-packages/psutil/_psaix.py
/usr/lib64/python3.6/site-packages/psutil/_psbsd.py
/usr/lib64/python3.6/site-packages/psutil/_pslinux.py
/usr/lib64/python3.6/site-packages/psutil/_psosx.py
/usr/lib64/python3.6/site-packages/psutil/_psposix.py
/usr/lib64/python3.6/site-packages/psutil/_pssunos.py
/usr/lib64/python3.6/site-packages/psutil/_psutil_linux.cpython-36m-x86_64-linux-gnu.so
/usr/lib64/python3.6/site-packages/psutil/_psutil_posix.cpython-36m-x86_64-linux-gnu.so
/usr/lib64/python3.6/site-packages/psutil/_pswindows.py
/usr/lib64/python3.6/site-packages/psutil/tests
/usr/lib64/python3.6/site-packages/psutil/tests/__init__.py
/usr/lib64/python3.6/site-packages/psutil/tests/__main__.py
/usr/lib64/python3.6/site-packages/psutil/tests/__pycache__
/usr/lib64/python3.6/site-packages/psutil/tests/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/psutil/tests/__pycache__/__init__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/psutil/tests/__pycache__/__main__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/psutil/tests/__pycache__/__main__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/psutil/tests/__pycache__/test_aix.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/psutil/tests/__pycache__/test_aix.cpython-36.pyc
/usr/lib64/python3.6/site-packages/psutil/tests/__pycache__/test_bsd.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/psutil/tests/__pycache__/test_bsd.cpython-36.pyc
/usr/lib64/python3.6/site-packages/psutil/tests/__pycache__/test_connections.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/psutil/tests/__pycache__/test_connections.cpython-36.pyc
/usr/lib64/python3.6/site-packages/psutil/tests/__pycache__/test_contracts.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/psutil/tests/__pycache__/test_contracts.cpython-36.pyc
/usr/lib64/python3.6/site-packages/psutil/tests/__pycache__/test_linux.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/psutil/tests/__pycache__/test_linux.cpython-36.pyc
/usr/lib64/python3.6/site-packages/psutil/tests/__pycache__/test_memory_leaks.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/psutil/tests/__pycache__/test_memory_leaks.cpython-36.pyc
/usr/lib64/python3.6/site-packages/psutil/tests/__pycache__/test_misc.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/psutil/tests/__pycache__/test_misc.cpython-36.pyc
/usr/lib64/python3.6/site-packages/psutil/tests/__pycache__/test_osx.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/psutil/tests/__pycache__/test_osx.cpython-36.pyc
/usr/lib64/python3.6/site-packages/psutil/tests/__pycache__/test_posix.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/psutil/tests/__pycache__/test_posix.cpython-36.pyc
/usr/lib64/python3.6/site-packages/psutil/tests/__pycache__/test_process.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/psutil/tests/__pycache__/test_process.cpython-36.pyc
/usr/lib64/python3.6/site-packages/psutil/tests/__pycache__/test_sunos.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/psutil/tests/__pycache__/test_sunos.cpython-36.pyc
/usr/lib64/python3.6/site-packages/psutil/tests/__pycache__/test_system.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/psutil/tests/__pycache__/test_system.cpython-36.pyc
/usr/lib64/python3.6/site-packages/psutil/tests/__pycache__/test_unicode.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/psutil/tests/__pycache__/test_unicode.cpython-36.pyc
/usr/lib64/python3.6/site-packages/psutil/tests/__pycache__/test_windows.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/psutil/tests/__pycache__/test_windows.cpython-36.pyc
/usr/lib64/python3.6/site-packages/psutil/tests/test_aix.py
/usr/lib64/python3.6/site-packages/psutil/tests/test_bsd.py
/usr/lib64/python3.6/site-packages/psutil/tests/test_connections.py
/usr/lib64/python3.6/site-packages/psutil/tests/test_contracts.py
/usr/lib64/python3.6/site-packages/psutil/tests/test_linux.py
/usr/lib64/python3.6/site-packages/psutil/tests/test_memory_leaks.py
/usr/lib64/python3.6/site-packages/psutil/tests/test_misc.py
/usr/lib64/python3.6/site-packages/psutil/tests/test_osx.py
/usr/lib64/python3.6/site-packages/psutil/tests/test_posix.py
/usr/lib64/python3.6/site-packages/psutil/tests/test_process.py
/usr/lib64/python3.6/site-packages/psutil/tests/test_sunos.py
/usr/lib64/python3.6/site-packages/psutil/tests/test_system.py
/usr/lib64/python3.6/site-packages/psutil/tests/test_unicode.py
/usr/lib64/python3.6/site-packages/psutil/tests/test_windows.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 Rocky Linux 8 using yum and dnf.