How To Install ps_mem.noarch on Amazon Linux 2
Introduction
In this tutorial we learn how to install ps_mem.noarch on Amazon Linux 2.
What is ps_mem.noarch
The ps_mem tool can determine how much RAM is used per program (not per process). In detail it reports sum(private RAM for program processes) + sum(Shared RAM for program processes) The shared RAM is problematic to calculate, and the tool automatically selects the most accurate method available for the running kernel.
We can use yum to install ps_mem.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install ps_mem.noarch.
Install ps_mem.noarch on Amazon Linux 2 Using yum
Update yum database with yum using the following command.
sudo yum makecache --refresh
After updating yum database, We can install ps_mem.noarch using yum by running the following command:
sudo yum -y install ps_mem.noarch
How To Uninstall ps_mem.noarch on Amazon Linux 2
To uninstall only the ps_mem.noarch package we can use the following command:
sudo yum remove ps_mem.noarch
ps_mem.noarch Package Contents on Amazon Linux 2
/usr/bin/ps_mem
/usr/share/doc/ps_mem-3.1
/usr/share/doc/ps_mem-3.1/LICENSE
/usr/share/man/man1/ps_mem.1.gz
References
Summary
In this tutorial we learn how to install ps_mem.noarch on Amazon Linux 2 using yum.