How To Install libtie-cache-perl on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libtie-cache-perl
on Ubuntu 20.04.
What is libtie-cache-perl
libtie-cache-perl is:
The module Tie::Cache module implements a least recently used (LRU) cache in memory through a tie interface. Any time data is stored in the tied hash, that key/value pair has an entry time associated with it, and as the cache fills up, those members of the cache that are the oldest are removed to make room for new entries.
So, the cache only “remembers” the last written entries, up to the size of the cache. This can be especially useful if you access great amounts of data, but only access a minority of the data a majority of the time.
There are three methods to install libtie-cache-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 libtie-cache-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 libtie-cache-perl
using apt-get
by running the following command:
sudo apt-get -y install libtie-cache-perl
Install libtie-cache-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libtie-cache-perl
using apt
by running the following command:
sudo apt -y install libtie-cache-perl
Install libtie-cache-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 libtie-cache-perl
using aptitude
by running the following command:
sudo aptitude -y install libtie-cache-perl
How To Uninstall libtie-cache-perl on Ubuntu 20.04
To uninstall only the libtie-cache-perl
package we can use the following command:
sudo apt-get remove libtie-cache-perl
Uninstall libtie-cache-perl And Its Dependencies
To uninstall libtie-cache-perl
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libtie-cache-perl
Remove libtie-cache-perl Configurations and Data
To remove libtie-cache-perl
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libtie-cache-perl
Remove libtie-cache-perl configuration, data, and all of its dependencies
We can use the following command to remove libtie-cache-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libtie-cache-perl
References
Summary
In this tutorial we learn how to install libtie-cache-perl
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.