How To Install psacct.x86_64 on Amazon Linux 2
Introduction
In this tutorial we learn how to install psacct.x86_64
on Amazon Linux 2.
What is psacct.x86_64
The psacct package contains several utilities for monitoring process activities, including ac, lastcomm, accton and sa. The ac command displays statistics about how long users have been logged on. The lastcomm command displays information about previous executed commands. The accton command turns process accounting on or off. The sa command summarizes information about previously executed commands.
We can use yum
to install psacct.x86_64
on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install psacct.x86_64.
Install psacct.x86_64 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 psacct.x86_64
using yum
by running the following command:
sudo yum -y install psacct.x86_64
How To Uninstall psacct.x86_64 on Amazon Linux 2
To uninstall only the psacct.x86_64
package we can use the following command:
sudo yum remove psacct.x86_64
psacct.x86_64 Package Contents on Amazon Linux 2
/etc/logrotate.d/psacct
/usr/bin/ac
/usr/bin/lastcomm
/usr/lib/systemd/system/psacct.service
/usr/libexec/psacct/accton-create
/usr/sbin/accton
/usr/sbin/dump-acct
/usr/sbin/dump-utmp
/usr/sbin/sa
/usr/share/doc/psacct-6.6.1
/usr/share/doc/psacct-6.6.1/COPYING
/usr/share/doc/psacct-6.6.1/README
/usr/share/info/accounting.info.gz
/usr/share/man/man1/ac.1.gz
/usr/share/man/man1/lastcomm.1.gz
/usr/share/man/man8/accton.8.gz
/usr/share/man/man8/dump-acct.8.gz
/usr/share/man/man8/dump-utmp.8.gz
/usr/share/man/man8/sa.8.gz
/var/account
/var/account/pacct
References
Summary
In this tutorial we learn how to install psacct.x86_64
on Amazon Linux 2 using yum.