DEV Community

Yuki Kimoto
Yuki Kimoto

Posted on

5 2

Installation of Perl on Linux/Unix 2022

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

This is originally Installation of Perl on Linux/Unix | Perl ABC

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.

Ubuntu

How to install Perl on Ubuntu.

# Installation of Perl on Ubuntu
sudo apt install perl

Debian

How to install Perl on Debian.

# Installation of Perl on Debian
apt-get install perl

CentOS/Redhat

How to install Perl on CentOS/Redhat.

# Installation of Perl on Cent OS
yum install perl

FreeBSD

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.

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay