How To Install psmisc on CentOS 7

In this tutorial we learn how to install psmisc on CentOS 7. psmisc is Utilities for managing processes on your system

Introduction

In this tutorial we learn how to install psmisc on CentOS 7.

What is psmisc

The psmisc package contains utilities for managing processes on your system displays 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.

We can use yum or dnf to install psmisc on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install psmisc.

Install psmisc on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install psmisc using yum by running the following command:

sudo yum -y install psmisc

Install psmisc on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install psmisc using dnf by running the following command:

sudo dnf -y install psmisc

How To Uninstall psmisc on CentOS 7

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

sudo dnf remove psmisc

References

Summary

In this tutorial we learn how to install psmisc on CentOS 7 using yum and dnf.