Installing Perl on Ubuntu
How to install Perl on Ubuntu. Install Perl using the apt command.
sudo apt install -y perl
Perl is often installed by default on Ubuntu, but if you don't have Perl installed on Ubuntu, install Perl.
If you can confirm the version of Perl, you have successfully installed Perl on Ubuntu.
perl -v
Perl module installation
It is not installed by default, but it is a Perl module installation that is highly needed.
- Installing the perl-doc package --perldoc command
- Install libio-socket-ssl-perl --Perl IO::Socket::SSL
- Install libreadline-dev-ReadLine library for saving and searching command execution history
- Installing libterm-readline-gnu-perl-Perl's Term::ReadLine::Gnu module
Installing Perl on Ubuntu version 12 and below
The apt command was introduced from Ubuntu 14, so if you have Ubuntu version 12 or lower, apt-get.
sudo apt-get install -y perl
Installing Perl in the user environment
The Perl described on this page is the system Perl you want to install on your system.
Installing Perl in your environment is described below.