How To Install liblocal-lib-perl on Ubuntu 20.04
Introduction
In this tutorial we learn how to install liblocal-lib-perl
on Ubuntu 20.04.
What is liblocal-lib-perl
liblocal-lib-perl is:
local::lib is a Perl module that provides a quick, convenient way of setting up a user-local library located within the user’s home directory. It also constructs and prints out for the user the list of environment variables using the syntax appropriate for the user’s current shell (as specified by the SHELL environment variable), suitable for directly adding to one’s shell configuration file.
More generally, this module enables bootstrapping and usage of a directory containing Perl modules outside of Perl’s @INC. This makes it easier to ship an application with an app-specific copy of a Perl module, or collection of modules. It is also useful for the case where an upstream maintainer hasn’t applied a patch to a module of theirs that you need for your application.
There are three methods to install liblocal-lib-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 liblocal-lib-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 liblocal-lib-perl
using apt-get
by running the following command:
sudo apt-get -y install liblocal-lib-perl
Install liblocal-lib-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install liblocal-lib-perl
using apt
by running the following command:
sudo apt -y install liblocal-lib-perl
Install liblocal-lib-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 liblocal-lib-perl
using aptitude
by running the following command:
sudo aptitude -y install liblocal-lib-perl
How To Uninstall liblocal-lib-perl on Ubuntu 20.04
To uninstall only the liblocal-lib-perl
package we can use the following command:
sudo apt-get remove liblocal-lib-perl
Uninstall liblocal-lib-perl And Its Dependencies
To uninstall liblocal-lib-perl
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove liblocal-lib-perl
Remove liblocal-lib-perl Configurations and Data
To remove liblocal-lib-perl
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge liblocal-lib-perl
Remove liblocal-lib-perl configuration, data, and all of its dependencies
We can use the following command to remove liblocal-lib-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge liblocal-lib-perl
References
Summary
In this tutorial we learn how to install liblocal-lib-perl
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.