How To Install perl-User-Utmp on Fedora 36

In this tutorial we learn how to install perl-User-Utmp in Fedora 36. perl-User-Utmp is Perl access to utmp- and utmpx-style databases

Introduction

In this tutorial we learn how to install perl-User-Utmp on Fedora 36.

What is perl-User-Utmp

UNIX systems record information about current and past log-ins in a user accounting database. This database is realized by two files contains a record of all users currently logged onto the system, while file wtmpx contains a record of all log-ins and log-outs. Some systems (such as HP-UX and AIX) also maintain a third file containing failed log-in attempts. The information in these files is used by commands such as who(1), last(1), write(1), or login(1).

We can use yum or dnf to install perl-User-Utmp on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install perl-User-Utmp.

Install perl-User-Utmp 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 perl-User-Utmp using dnf by running the following command:

sudo dnf -y install perl-User-Utmp

Install perl-User-Utmp 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 perl-User-Utmp using yum by running the following command:

sudo yum -y install perl-User-Utmp

How To Uninstall perl-User-Utmp on Fedora 36

To uninstall only the perl-User-Utmp package we can use the following command:

sudo dnf remove perl-User-Utmp

perl-User-Utmp Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/52
/usr/lib/.build-id/52/0c4fab58402cfffe3fe8390ebd1d7b7a54fd8d
/usr/lib64/perl5/vendor_perl/User
/usr/lib64/perl5/vendor_perl/User/Utmp.pm
/usr/lib64/perl5/vendor_perl/User/example.pl
/usr/lib64/perl5/vendor_perl/auto/User
/usr/lib64/perl5/vendor_perl/auto/User/Utmp
/usr/lib64/perl5/vendor_perl/auto/User/Utmp/Utmp.so
/usr/lib64/perl5/vendor_perl/auto/User/Utmp/autosplit.ix
/usr/share/doc/perl-User-Utmp
/usr/share/doc/perl-User-Utmp/Changes
/usr/share/doc/perl-User-Utmp/README
/usr/share/doc/perl-User-Utmp/example.pl
/usr/share/man/man3/User::Utmp.3pm.gz

References

Summary

In this tutorial we learn how to install perl-User-Utmp on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).