How To Install perl-interpreter on AlmaLinux 8
Introduction
In this tutorial we learn how to install perl-interpreter
on AlmaLinux 8.
What is perl-interpreter
This is a Perl interpreter as a standalone executable /usr/bin/perl required for handling Perl scripts. It does not provide all the other Perl modules or tools. Install this package if you want to program in Perl or enable your system to handle Perl scripts with /usr/bin/perl interpreter. If your script requires some Perl modules, you can install them with “perl(MODULE)” where “MODULE” is a name of required module. E.g. install “perl(Test If you need all the Perl modules that come with upstream Perl sources, so called core modules, install perl package. If you only need perl run-time as a shared library, i.e. Perl interpreter embedded into another application, the only essential package is perl-libs. Perl header files can be found in perl-devel package. Perl utils like “splain” or “perlbug” can be found in perl-utils package.
We can use yum
or dnf
to install perl-interpreter
on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install perl-interpreter.
Install perl-interpreter on AlmaLinux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install perl-interpreter
using dnf
by running the following command:
sudo dnf -y install perl-interpreter
Install perl-interpreter on AlmaLinux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install perl-interpreter
using yum
by running the following command:
sudo yum -y install perl-interpreter
How To Uninstall perl-interpreter on AlmaLinux 8
To uninstall only the perl-interpreter
package we can use the following command:
sudo dnf remove perl-interpreter
References
Summary
In this tutorial we learn how to install perl-interpreter
on AlmaLinux 8 using yum and dnf.