How To Install psmisc on CentOS 8
Introduction
In this tutorial we learn how to install psmisc
on CentOS 8.
What is psmisc
The psmisc package contains utilities for managing processes on your system a tree structure of all of the running processes on your system. The killall command sends a specified signal (SIGTERM if nothing is specified) to processes identified by name. The fuser command identifies the PIDs of processes that are using specified files or filesystems. The pslog command shows the path of log files owned by a given process.
We can use yum
or dnf
to install psmisc
on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install psmisc.
Install psmisc on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install psmisc
using dnf
by running the following command:
sudo dnf -y install psmisc
Install psmisc on CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install psmisc
using yum
by running the following command:
sudo yum -y install psmisc
How To Uninstall psmisc on CentOS 8
To uninstall only the psmisc
package we can use the following command:
sudo dnf remove psmisc
psmisc Package Contents on CentOS 8
/usr/bin/killall
/usr/bin/peekfd
/usr/bin/prtstat
/usr/bin/pslog
/usr/bin/pstree
/usr/bin/pstree.x11
/usr/lib/.build-id
/usr/lib/.build-id/02
/usr/lib/.build-id/02/68fe2ecafcf11a9796c9da40db8fac387aa129
/usr/lib/.build-id/3e
/usr/lib/.build-id/3e/4da8eede24c88d7a5ed87d9ee1d33fa70bc2b1
/usr/lib/.build-id/92
/usr/lib/.build-id/92/d24870b2dbee260845f1668360dcdd15170886
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/505078a00cfa7c2612bc15cce66c13150884fd
/usr/lib/.build-id/dd
/usr/lib/.build-id/dd/e267529b0e612508a6656b4c287adf1b3ba3e7
/usr/lib/.build-id/e2
/usr/lib/.build-id/e2/cfff859f78b3d890310517c66510cbe0d4969a
/usr/sbin/fuser
/usr/share/doc/psmisc
/usr/share/doc/psmisc/AUTHORS
/usr/share/doc/psmisc/ChangeLog
/usr/share/doc/psmisc/README
/usr/share/licenses/psmisc
/usr/share/licenses/psmisc/COPYING
/usr/share/locale/bg/LC_MESSAGES/psmisc.mo
/usr/share/locale/ca/LC_MESSAGES/psmisc.mo
/usr/share/locale/cs/LC_MESSAGES/psmisc.mo
/usr/share/locale/da/LC_MESSAGES/psmisc.mo
/usr/share/locale/de/LC_MESSAGES/psmisc.mo
/usr/share/locale/el/LC_MESSAGES/psmisc.mo
/usr/share/locale/eo/LC_MESSAGES/psmisc.mo
/usr/share/locale/eu/LC_MESSAGES/psmisc.mo
/usr/share/locale/fi/LC_MESSAGES/psmisc.mo
/usr/share/locale/fr/LC_MESSAGES/psmisc.mo
/usr/share/locale/hr/LC_MESSAGES/psmisc.mo
/usr/share/locale/hu/LC_MESSAGES/psmisc.mo
/usr/share/locale/id/LC_MESSAGES/psmisc.mo
/usr/share/locale/it/LC_MESSAGES/psmisc.mo
/usr/share/locale/ja/LC_MESSAGES/psmisc.mo
/usr/share/locale/nb/LC_MESSAGES/psmisc.mo
/usr/share/locale/nl/LC_MESSAGES/psmisc.mo
/usr/share/locale/pl/LC_MESSAGES/psmisc.mo
/usr/share/locale/pt/LC_MESSAGES/psmisc.mo
/usr/share/locale/pt_BR/LC_MESSAGES/psmisc.mo
/usr/share/locale/ro/LC_MESSAGES/psmisc.mo
/usr/share/locale/ru/LC_MESSAGES/psmisc.mo
/usr/share/locale/sr/LC_MESSAGES/psmisc.mo
/usr/share/locale/sv/LC_MESSAGES/psmisc.mo
/usr/share/locale/uk/LC_MESSAGES/psmisc.mo
/usr/share/locale/vi/LC_MESSAGES/psmisc.mo
/usr/share/locale/zh_CN/LC_MESSAGES/psmisc.mo
/usr/share/locale/zh_TW/LC_MESSAGES/psmisc.mo
/usr/share/man/man1/fuser.1.gz
/usr/share/man/man1/killall.1.gz
/usr/share/man/man1/peekfd.1.gz
/usr/share/man/man1/prtstat.1.gz
/usr/share/man/man1/pslog.1.gz
/usr/share/man/man1/pstree.1.gz
References
Summary
In this tutorial we learn how to install psmisc
on CentOS 8 using yum and dnf.