How To Install psmisc on Rocky Linux 8

In this tutorial we learn how to install psmisc on Rocky Linux 8. psmisc is Utilities for managing processes on your system

Introduction

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

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

sudo dnf -y install psmisc

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

sudo yum -y install psmisc

How To Uninstall psmisc on Rocky Linux 8

To uninstall only the psmisc package we can use the following command:

sudo dnf remove psmisc

psmisc Package Contents on Rocky Linux 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/08
/usr/lib/.build-id/08/b6b5675053c4c850c9beae43d2ed482f72f3bb
/usr/lib/.build-id/11
/usr/lib/.build-id/11/b89b79ce19fc24005234f8bb431a2bd932185f
/usr/lib/.build-id/1a
/usr/lib/.build-id/1a/e90f42f79ccf53a0572aeddab6199472ae6774
/usr/lib/.build-id/88
/usr/lib/.build-id/88/d49ee5bc7ea1ef776e0530864d6b0fdeb76b65
/usr/lib/.build-id/bd
/usr/lib/.build-id/bd/5f971c85348a64b68bf7e7c22b017fbc99c827
/usr/lib/.build-id/ca
/usr/lib/.build-id/ca/56f3be86d5ddfed98823a0c6216a4a617ceecb
/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 Rocky Linux 8 using yum and dnf.