How To Install perl-base on Ubuntu 20.04
Introduction
In this tutorial we learn how to install perl-base
on Ubuntu 20.04.
What is perl-base
perl-base is:
Perl is a scripting language used in many system scripts and utilities.
This package provides a Perl interpreter and the small subset of the standard run-time library required to perform basic tasks. For a full Perl installation, install “perl” (and its dependencies, “perl-modules-5.30” and “perl-doc”). Task: minimal
Package: perl-base Architecture: amd64 Version: 5.30.0-9build1 Priority: required Essential: yes Section: perl Source: perl Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Niko Tyni [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 10779 Provides: libfile-path-perl (= 2.16), libfile-temp-perl (= 0.2309), libio-socket-ip-perl (= 0.39), libscalar-list-utils-perl (= 1:1.50), libsocket-perl (= 2.027), libxsloader-perl (= 0.30), perlapi-5.30.0 Pre-Depends: libc6 (>= 2.29), libcrypt1 (>= 1:4.1.0), dpkg (>= 1.17.17) Suggests: perl, sensible-utils Conflicts: defoma (« 0.11.12), doc-base (« 0.10.3), mono-gac (« 2.10.8.1-3), safe-rm (« 0.8), update-inetd (« 4.41) Breaks: amanda-common (« 1:3.3.9-2), backuppc (« 3.3.1-2), debconf (« 1.5.61), dh-haskell (« 0.3), intltool (« 0.51.0-4), libexception-class-perl (« 1.42), libfile-path-perl (« 2.16), libfile-spec-perl (« 3.7800), libfile-temp-perl (« 0.2309), libio-socket-ip-perl (« 0.39), libsbuild-perl (« 0.67.0-1), libscalar-list-utils-perl (« 1:1.50), libsocket-perl (« 2.027), libxsloader-perl (« 0.30), mailagent (« 1:3.1-81-2), perl (« 5.30.0~), perl-modules (« 5.30.0~), slic3r (« 1.2.9+dfsg-6.1), slic3r-prusa (« 1.37.0+dfsg-1.1), texinfo (« 6.1.0.dfsg.1-8) Replaces: libfile-path-perl (« 2.16), libfile-temp-perl (« 0.2309), libio-socket-ip-perl (« 0.39), libscalar-list-utils-perl (« 1:1.50), libsocket-perl (« 2.027), libxsloader-perl (« 0.30), perl (« 5.10.1-12), perl-modules (« 5.20.1-3) Filename: pool/main/p/perl/perl-base_5.30.0-9build1_amd64.deb Size: 1511376 MD5sum: f11d9b60f07cc08ee74ce2d1ea282a1c SHA1: dd41b8a8e03c4171a3782d28b3360a7dc8406a6c SHA256: c54aba77f96790f4e9ab73c9075a046302d78d82501a2de52c0438ad829e17b8 Homepage: http://dev.perl.org/perl5/ Description-en: minimal Perl system Perl is a scripting language used in many system scripts and utilities.
This package provides a Perl interpreter and the small subset of the standard run-time library required to perform basic tasks. For a full Perl installation, install “perl” (and its dependencies, “perl-modules-5.30” and “perl-doc”). Task: minimal
There are three methods to install perl-base
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install perl-base Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install perl-base
using apt-get
by running the following command:
sudo apt-get -y install perl-base
Install perl-base Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install perl-base
using apt
by running the following command:
sudo apt -y install perl-base
Install perl-base Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install perl-base
using aptitude
by running the following command:
sudo aptitude -y install perl-base
How To Uninstall perl-base on Ubuntu 20.04
To uninstall only the perl-base
package we can use the following command:
sudo apt-get remove perl-base
Uninstall perl-base And Its Dependencies
To uninstall perl-base
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove perl-base
Remove perl-base Configurations and Data
To remove perl-base
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge perl-base
Remove perl-base configuration, data, and all of its dependencies
We can use the following command to remove perl-base
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge perl-base
References
Summary
In this tutorial we learn how to install perl-base
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.