How To Install python38-psutil on Rocky Linux 8
Introduction
In this tutorial we learn how to install python38-psutil
on Rocky Linux 8.
What is python38-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 python38-psutil
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python38-psutil.
Install python38-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 python38-psutil
using dnf
by running the following command:
sudo dnf -y install python38-psutil
Install python38-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 python38-psutil
using yum
by running the following command:
sudo yum -y install python38-psutil
How To Uninstall python38-psutil on Rocky Linux 8
To uninstall only the python38-psutil
package we can use the following command:
sudo dnf remove python38-psutil
python38-psutil Package Contents on Rocky Linux 8
/usr/lib/.build-id
/usr/lib/.build-id/78
/usr/lib/.build-id/78/be685bfa004077ed6e84d6a15b1bb2188cfcf4
/usr/lib/.build-id/b6
/usr/lib/.build-id/b6/9c37919dbdf5379ab8d6988e43e13c154bf334
/usr/lib64/python3.8/site-packages/psutil
/usr/lib64/python3.8/site-packages/psutil-5.6.4-py3.8.egg-info
/usr/lib64/python3.8/site-packages/psutil-5.6.4-py3.8.egg-info/PKG-INFO
/usr/lib64/python3.8/site-packages/psutil-5.6.4-py3.8.egg-info/SOURCES.txt
/usr/lib64/python3.8/site-packages/psutil-5.6.4-py3.8.egg-info/dependency_links.txt
/usr/lib64/python3.8/site-packages/psutil-5.6.4-py3.8.egg-info/not-zip-safe
/usr/lib64/python3.8/site-packages/psutil-5.6.4-py3.8.egg-info/top_level.txt
/usr/lib64/python3.8/site-packages/psutil/__init__.py
/usr/lib64/python3.8/site-packages/psutil/__pycache__
/usr/lib64/python3.8/site-packages/psutil/__pycache__/__init__.cpython-38.opt-1.pyc
/usr/lib64/python3.8/site-packages/psutil/__pycache__/__init__.cpython-38.pyc
/usr/lib64/python3.8/site-packages/psutil/__pycache__/_common.cpython-38.opt-1.pyc
/usr/lib64/python3.8/site-packages/psutil/__pycache__/_common.cpython-38.pyc
/usr/lib64/python3.8/site-packages/psutil/__pycache__/_compat.cpython-38.opt-1.pyc
/usr/lib64/python3.8/site-packages/psutil/__pycache__/_compat.cpython-38.pyc
/usr/lib64/python3.8/site-packages/psutil/__pycache__/_psaix.cpython-38.opt-1.pyc
/usr/lib64/python3.8/site-packages/psutil/__pycache__/_psaix.cpython-38.pyc
/usr/lib64/python3.8/site-packages/psutil/__pycache__/_psbsd.cpython-38.opt-1.pyc
/usr/lib64/python3.8/site-packages/psutil/__pycache__/_psbsd.cpython-38.pyc
/usr/lib64/python3.8/site-packages/psutil/__pycache__/_pslinux.cpython-38.opt-1.pyc
/usr/lib64/python3.8/site-packages/psutil/__pycache__/_pslinux.cpython-38.pyc
/usr/lib64/python3.8/site-packages/psutil/__pycache__/_psosx.cpython-38.opt-1.pyc
/usr/lib64/python3.8/site-packages/psutil/__pycache__/_psosx.cpython-38.pyc
/usr/lib64/python3.8/site-packages/psutil/__pycache__/_psposix.cpython-38.opt-1.pyc
/usr/lib64/python3.8/site-packages/psutil/__pycache__/_psposix.cpython-38.pyc
/usr/lib64/python3.8/site-packages/psutil/__pycache__/_pssunos.cpython-38.opt-1.pyc
/usr/lib64/python3.8/site-packages/psutil/__pycache__/_pssunos.cpython-38.pyc
/usr/lib64/python3.8/site-packages/psutil/__pycache__/_pswindows.cpython-38.opt-1.pyc
/usr/lib64/python3.8/site-packages/psutil/__pycache__/_pswindows.cpython-38.pyc
/usr/lib64/python3.8/site-packages/psutil/_common.py
/usr/lib64/python3.8/site-packages/psutil/_compat.py
/usr/lib64/python3.8/site-packages/psutil/_psaix.py
/usr/lib64/python3.8/site-packages/psutil/_psbsd.py
/usr/lib64/python3.8/site-packages/psutil/_pslinux.py
/usr/lib64/python3.8/site-packages/psutil/_psosx.py
/usr/lib64/python3.8/site-packages/psutil/_psposix.py
/usr/lib64/python3.8/site-packages/psutil/_pssunos.py
/usr/lib64/python3.8/site-packages/psutil/_psutil_linux.cpython-38-x86_64-linux-gnu.so
/usr/lib64/python3.8/site-packages/psutil/_psutil_posix.cpython-38-x86_64-linux-gnu.so
/usr/lib64/python3.8/site-packages/psutil/_pswindows.py
/usr/lib64/python3.8/site-packages/psutil/tests
/usr/lib64/python3.8/site-packages/psutil/tests/__init__.py
/usr/lib64/python3.8/site-packages/psutil/tests/__main__.py
/usr/lib64/python3.8/site-packages/psutil/tests/__pycache__
/usr/lib64/python3.8/site-packages/psutil/tests/__pycache__/__init__.cpython-38.opt-1.pyc
/usr/lib64/python3.8/site-packages/psutil/tests/__pycache__/__init__.cpython-38.pyc
/usr/lib64/python3.8/site-packages/psutil/tests/__pycache__/__main__.cpython-38.opt-1.pyc
/usr/lib64/python3.8/site-packages/psutil/tests/__pycache__/__main__.cpython-38.pyc
/usr/lib64/python3.8/site-packages/psutil/tests/__pycache__/runner.cpython-38.opt-1.pyc
/usr/lib64/python3.8/site-packages/psutil/tests/__pycache__/runner.cpython-38.pyc
/usr/lib64/python3.8/site-packages/psutil/tests/__pycache__/test_aix.cpython-38.opt-1.pyc
/usr/lib64/python3.8/site-packages/psutil/tests/__pycache__/test_aix.cpython-38.pyc
/usr/lib64/python3.8/site-packages/psutil/tests/__pycache__/test_bsd.cpython-38.opt-1.pyc
/usr/lib64/python3.8/site-packages/psutil/tests/__pycache__/test_bsd.cpython-38.pyc
/usr/lib64/python3.8/site-packages/psutil/tests/__pycache__/test_connections.cpython-38.opt-1.pyc
/usr/lib64/python3.8/site-packages/psutil/tests/__pycache__/test_connections.cpython-38.pyc
/usr/lib64/python3.8/site-packages/psutil/tests/__pycache__/test_contracts.cpython-38.opt-1.pyc
/usr/lib64/python3.8/site-packages/psutil/tests/__pycache__/test_contracts.cpython-38.pyc
/usr/lib64/python3.8/site-packages/psutil/tests/__pycache__/test_linux.cpython-38.opt-1.pyc
/usr/lib64/python3.8/site-packages/psutil/tests/__pycache__/test_linux.cpython-38.pyc
/usr/lib64/python3.8/site-packages/psutil/tests/__pycache__/test_memory_leaks.cpython-38.opt-1.pyc
/usr/lib64/python3.8/site-packages/psutil/tests/__pycache__/test_memory_leaks.cpython-38.pyc
/usr/lib64/python3.8/site-packages/psutil/tests/__pycache__/test_misc.cpython-38.opt-1.pyc
/usr/lib64/python3.8/site-packages/psutil/tests/__pycache__/test_misc.cpython-38.pyc
/usr/lib64/python3.8/site-packages/psutil/tests/__pycache__/test_osx.cpython-38.opt-1.pyc
/usr/lib64/python3.8/site-packages/psutil/tests/__pycache__/test_osx.cpython-38.pyc
/usr/lib64/python3.8/site-packages/psutil/tests/__pycache__/test_posix.cpython-38.opt-1.pyc
/usr/lib64/python3.8/site-packages/psutil/tests/__pycache__/test_posix.cpython-38.pyc
/usr/lib64/python3.8/site-packages/psutil/tests/__pycache__/test_process.cpython-38.opt-1.pyc
/usr/lib64/python3.8/site-packages/psutil/tests/__pycache__/test_process.cpython-38.pyc
/usr/lib64/python3.8/site-packages/psutil/tests/__pycache__/test_sunos.cpython-38.opt-1.pyc
/usr/lib64/python3.8/site-packages/psutil/tests/__pycache__/test_sunos.cpython-38.pyc
/usr/lib64/python3.8/site-packages/psutil/tests/__pycache__/test_system.cpython-38.opt-1.pyc
/usr/lib64/python3.8/site-packages/psutil/tests/__pycache__/test_system.cpython-38.pyc
/usr/lib64/python3.8/site-packages/psutil/tests/__pycache__/test_unicode.cpython-38.opt-1.pyc
/usr/lib64/python3.8/site-packages/psutil/tests/__pycache__/test_unicode.cpython-38.pyc
/usr/lib64/python3.8/site-packages/psutil/tests/__pycache__/test_windows.cpython-38.opt-1.pyc
/usr/lib64/python3.8/site-packages/psutil/tests/__pycache__/test_windows.cpython-38.pyc
/usr/lib64/python3.8/site-packages/psutil/tests/runner.py
/usr/lib64/python3.8/site-packages/psutil/tests/test_aix.py
/usr/lib64/python3.8/site-packages/psutil/tests/test_bsd.py
/usr/lib64/python3.8/site-packages/psutil/tests/test_connections.py
/usr/lib64/python3.8/site-packages/psutil/tests/test_contracts.py
/usr/lib64/python3.8/site-packages/psutil/tests/test_linux.py
/usr/lib64/python3.8/site-packages/psutil/tests/test_memory_leaks.py
/usr/lib64/python3.8/site-packages/psutil/tests/test_misc.py
/usr/lib64/python3.8/site-packages/psutil/tests/test_osx.py
/usr/lib64/python3.8/site-packages/psutil/tests/test_posix.py
/usr/lib64/python3.8/site-packages/psutil/tests/test_process.py
/usr/lib64/python3.8/site-packages/psutil/tests/test_sunos.py
/usr/lib64/python3.8/site-packages/psutil/tests/test_system.py
/usr/lib64/python3.8/site-packages/psutil/tests/test_unicode.py
/usr/lib64/python3.8/site-packages/psutil/tests/test_windows.py
/usr/share/doc/python38-psutil
/usr/share/doc/python38-psutil/CREDITS
/usr/share/doc/python38-psutil/HISTORY.rst
/usr/share/doc/python38-psutil/README.rst
/usr/share/licenses/python38-psutil
/usr/share/licenses/python38-psutil/LICENSE
References
Summary
In this tutorial we learn how to install python38-psutil
on Rocky Linux 8 using yum and dnf.