How To Install perl-Sys-MemInfo on Rocky Linux 8

In this tutorial we learn how to install perl-Sys-MemInfo on Rocky Linux 8. perl-Sys-MemInfo is Memory information as Perl module

Introduction

In this tutorial we learn how to install perl-Sys-MemInfo on Rocky Linux 8.

What is perl-Sys-MemInfo

Sys bytes in totalmem and freemem variables.

We can use yum or dnf to install perl-Sys-MemInfo on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Sys-MemInfo.

Install perl-Sys-MemInfo on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install perl-Sys-MemInfo using dnf by running the following command:

sudo dnf -y install perl-Sys-MemInfo

Install perl-Sys-MemInfo on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install perl-Sys-MemInfo using yum by running the following command:

sudo yum -y install perl-Sys-MemInfo

How To Uninstall perl-Sys-MemInfo on Rocky Linux 8

To uninstall only the perl-Sys-MemInfo package we can use the following command:

sudo dnf remove perl-Sys-MemInfo

perl-Sys-MemInfo Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/99
/usr/lib/.build-id/99/e900343e81a3726aac263bc99558d7a5aa8a42
/usr/lib64/perl5/vendor_perl/Sys
/usr/lib64/perl5/vendor_perl/Sys/MemInfo.pm
/usr/lib64/perl5/vendor_perl/auto/Sys
/usr/lib64/perl5/vendor_perl/auto/Sys/MemInfo
/usr/lib64/perl5/vendor_perl/auto/Sys/MemInfo/MemInfo.so
/usr/share/doc/perl-Sys-MemInfo
/usr/share/doc/perl-Sys-MemInfo/Changes
/usr/share/doc/perl-Sys-MemInfo/README
/usr/share/licenses/perl-Sys-MemInfo
/usr/share/licenses/perl-Sys-MemInfo/LICENSE
/usr/share/man/man3/Sys::MemInfo.3pm.gz

References

Summary

In this tutorial we learn how to install perl-Sys-MemInfo on Rocky Linux 8 using yum and dnf.