How To Install perl-Carp on Rocky Linux 8
Introduction
In this tutorial we learn how to install perl-Carp
on Rocky Linux 8.
What is perl-Carp
The Carp routines are useful in your own modules because they act like die() or warn(), but with a message which is more likely to be useful to a user of your module. In the case of cluck, confess, and longmess that context is a summary of every call in the call-stack. For a shorter message you can use carp or croak which report the error as being from where your module was called. There is no guarantee that that is where the error was, but it is a good educated guess.
We can use yum
or dnf
to install perl-Carp
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Carp.
Install perl-Carp 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-Carp
using dnf
by running the following command:
sudo dnf -y install perl-Carp
Install perl-Carp 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-Carp
using yum
by running the following command:
sudo yum -y install perl-Carp
How To Uninstall perl-Carp on Rocky Linux 8
To uninstall only the perl-Carp
package we can use the following command:
sudo dnf remove perl-Carp
perl-Carp Package Contents on Rocky Linux 8
/usr/share/doc/perl-Carp
/usr/share/doc/perl-Carp/Changes
/usr/share/doc/perl-Carp/README
/usr/share/man/man3/Carp.3pm.gz
/usr/share/perl5/vendor_perl/Carp
/usr/share/perl5/vendor_perl/Carp.pm
/usr/share/perl5/vendor_perl/Carp/Heavy.pm
References
Summary
In this tutorial we learn how to install perl-Carp
on Rocky Linux 8 using yum and dnf.