How To Install procps-ng on CentOS 7

In this tutorial we learn how to install procps-ng on CentOS 7. procps-ng is System and process monitoring utilities

Introduction

In this tutorial we learn how to install procps-ng on CentOS 7.

What is procps-ng

The procps package contains a set of system utilities that provide system information. Procps includes ps, free, skill, pkill, pgrep, snice, tload, top, uptime, vmstat, w, watch and pwdx. The ps command displays a snapshot of running processes. The top command provides a repetitive update of the statuses of running processes. The free command displays the amounts of free and used memory on your system. The skill command sends a terminate command (or another specified signal) to a specified set of processes. The snice command is used to change the scheduling priority of specified processes. The tload command prints a graph of the current system load average to a specified tty. The uptime command displays the current time, how long the system has been running, how many users are logged on, and system load averages for the past one, five, and fifteen minutes. The w command displays a list of the users who are currently logged on and what they are running. The watch program watches a running program. The vmstat command displays virtual memory statistics about processes, memory, paging, block I/O, traps, and CPU activity. The pwdx command reports the current working directory of a process or processes.

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

Install procps-ng on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install procps-ng using yum by running the following command:

sudo yum -y install procps-ng

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

sudo dnf -y install procps-ng

How To Uninstall procps-ng on CentOS 7

To uninstall only the procps-ng package we can use the following command:

sudo dnf remove procps-ng

References

Summary

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