1. Perl
  2. Installation

Installation of Perl on Linux/Unix

Perl is already installed in Linux/UNIX in many cases.

Check if Perl is installed on Linux/UNIX by the following command.

perl -v

If you see the version of Perl, Perl is already installed.

This is perl 5, version 32, subversion 1 (v5.32.1) built for x86_64-linux
(with 1 registered patch, see perl -V for more detail)

Installation of System Perl

If the system doesn't have Perl , you can install the Perl using package managers such as apt or yum.


How to install Perl on Ubuntu.

# Installation of Perl on Ubuntu
sudo apt install perl


How to install Perl on Debian.

# Installation of Perl on Debian
apt-get install perl


How to install Perl on CentOS/Redhat.

# Installation of Perl on Cent OS
yum install perl


How to install Perl on FreeBSD.

# Installation of Perl on FreeBSD
pkg_add -r perl

Installation of Perl on your home directory

If you want to install the specific version of Perl on your home directory, you can use perlbrew or plenv according to your taste.

Related Informatrion