How To Install perl-true on Rocky Linux 8
Introduction
In this tutorial we learn how to install perl-true
on Rocky Linux 8.
What is perl-true
Perl’s require built-in (and its use wrapper) requires the files it loads to return a true value. This is usually accomplished by placing a single 1; statement at the end of included scripts or modules. It’s not onerous to add but it’s a speed bump on the Perl novice’s road to enlightenment. In addition, it appears to be a non-sequitur to the uninitiated, leading some to attempt to mitigate its appearance with a comment 1; # keep require happy or 1; # Do not remove this line or even 1; # Must end with this, because Perl is bogus. This module packages this “return true” behavior so that it need not be written explicitly. It can be used directly, but it is intended to be invoked from the import method of a Modern features and conveniences and cleans up legacy Perl warts.
We can use yum
or dnf
to install perl-true
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install perl-true.
Install perl-true 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-true
using dnf
by running the following command:
sudo dnf -y install perl-true
Install perl-true 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-true
using yum
by running the following command:
sudo yum -y install perl-true
How To Uninstall perl-true on Rocky Linux 8
To uninstall only the perl-true
package we can use the following command:
sudo dnf remove perl-true
perl-true Package Contents on Rocky Linux 8
/usr/lib/.build-id
/usr/lib/.build-id/7e
/usr/lib/.build-id/7e/77d253bf7305b22f00e68c792fd50ba6a10bf0
/usr/lib64/perl5/vendor_perl/auto/true
/usr/lib64/perl5/vendor_perl/auto/true/true.so
/usr/lib64/perl5/vendor_perl/true
/usr/lib64/perl5/vendor_perl/true.pm
/usr/lib64/perl5/vendor_perl/true/VERSION.pm
/usr/share/doc/perl-true
/usr/share/doc/perl-true/Changes
/usr/share/doc/perl-true/README
/usr/share/licenses/perl-true
/usr/share/licenses/perl-true/LICENSE.md
/usr/share/man/man3/true.3pm.gz
/usr/share/man/man3/true::VERSION.3pm.gz
References
Summary
In this tutorial we learn how to install perl-true
on Rocky Linux 8 using yum and dnf.