How To Install psacct on Fedora 36
Introduction
In this tutorial we learn how to install psacct
on Fedora 36.
What is psacct
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
or dnf
to install psacct
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install psacct.
Install psacct on Fedora 36 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install psacct
using dnf
by running the following command:
sudo dnf -y install psacct
Install psacct on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install psacct
using yum
by running the following command:
sudo yum -y install psacct
How To Uninstall psacct on Fedora 36
To uninstall only the psacct
package we can use the following command:
sudo dnf remove psacct
psacct Package Contents on Fedora 36
/etc/logrotate.d/psacct
/usr/bin/ac
/usr/bin/lastcomm
/usr/lib/.build-id
/usr/lib/.build-id/3f
/usr/lib/.build-id/3f/ff859e4811086ea5a21fe94a96c6801e8b1ba5
/usr/lib/.build-id/51
/usr/lib/.build-id/51/fddab5f71080d38b8eca30b01b5d9e784831b5
/usr/lib/.build-id/54
/usr/lib/.build-id/54/216c505c5e529961cec3bd6ab11fbaed05e6f7
/usr/lib/.build-id/60
/usr/lib/.build-id/60/be8fb81faf4fa1cc552534917cf918d9965ba8
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/72400d066bddb103bce5b2aad7d6fac35ade72
/usr/lib/.build-id/cc
/usr/lib/.build-id/cc/cf4e0ed12405ffd2c6d48dd2d0aa39a739653a
/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
/usr/share/doc/psacct/README
/usr/share/info/accounting.info.gz
/usr/share/licenses/psacct
/usr/share/licenses/psacct/COPYING
/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
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).