How To Install libvendorlib-perl on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libvendorlib-perl on Ubuntu 20.04.
What is libvendorlib-perl
libvendorlib-perl is:
In a system distribution such as Debian, it may be advisable for Perl programs to ignore the user’s CPAN-installed modules and only use the distribution-provided modules to avoid possible breakage with newer and unpackaged versions of modules.
To that end, this pragma will replace your @INC with only the core and vendor @INC paths, ignoring site_perl and $ENV{PERL5LIB} entirely.
It is recommended that you put ‘use vendorlib;’ as the first statement in your program, before even ‘use strict;’ and ‘use warnings;’.
There are three methods to install libvendorlib-perl 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 libvendorlib-perl Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install libvendorlib-perl using apt-get by running the following command:
sudo apt-get -y install libvendorlib-perl
Install libvendorlib-perl Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install libvendorlib-perl using apt by running the following command:
sudo apt -y install libvendorlib-perl
Install libvendorlib-perl 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 libvendorlib-perl using aptitude by running the following command:
sudo aptitude -y install libvendorlib-perl
How To Uninstall libvendorlib-perl on Ubuntu 20.04
To uninstall only the libvendorlib-perl package we can use the following command:
sudo apt-get remove libvendorlib-perl
Uninstall libvendorlib-perl And Its Dependencies
To uninstall libvendorlib-perl and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libvendorlib-perl
Remove libvendorlib-perl Configurations and Data
To remove libvendorlib-perl configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libvendorlib-perl
Remove libvendorlib-perl configuration, data, and all of its dependencies
We can use the following command to remove libvendorlib-perl configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libvendorlib-perl
References
Summary
In this tutorial we learn how to install libvendorlib-perl package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.