How To Install libcache-perl on Ubuntu 18.04
Introduction
In this tutorial we learn how to install libcache-perl
on Ubuntu 18.04.
What is libcache-perl
libcache-perl is:
Cache is designed to assist a developer in persisting data for a specified period of time. Often these modules are used in web applications to store data locally to save repeated and redundant expensive calls to remote machines or databases.
The Cache interface is implemented by derived classes that store cached data in different manners (such as files on a filesystem, or in memory).
There are three methods to install libcache-perl
on Ubuntu 18.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 libcache-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 libcache-perl
using apt-get
by running the following command:
sudo apt-get -y install libcache-perl
Install libcache-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libcache-perl
using apt
by running the following command:
sudo apt -y install libcache-perl
Install libcache-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 libcache-perl
using aptitude
by running the following command:
sudo aptitude -y install libcache-perl
How To Uninstall libcache-perl on Ubuntu 18.04
To uninstall only the libcache-perl
package we can use the following command:
sudo apt-get remove libcache-perl
Uninstall libcache-perl And Its Dependencies
To uninstall libcache-perl
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove libcache-perl
Remove libcache-perl Configurations and Data
To remove libcache-perl
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge libcache-perl
Remove libcache-perl configuration, data, and all of its dependencies
We can use the following command to remove libcache-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libcache-perl
References
Summary
In this tutorial we learn how to install libcache-perl
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.