How To Install libcache-mmap-perl on Ubuntu 18.04
Introduction
In this tutorial we learn how to install libcache-mmap-perl on Ubuntu 18.04.
What is libcache-mmap-perl
libcache-mmap-perl is:
Cache::Mmap implements a shared data cache, using memory mapped files. If routines are provided which interact with the underlying data, access to the cache is completely transparent, and the module handles all the details of refreshing cache contents, and updating underlying data, if necessary.
Cache entries are assigned to “buckets” within the cache file, depending on the key. Within each bucket, entries are stored approximately in order of last access, so that frequently accessed entries will move to the head of the bucket, thus decreasing access time. Concurrent accesses to the same bucket are prevented by file locking of the relevant section of the cache file.
There are three methods to install libcache-mmap-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-mmap-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-mmap-perl using apt-get by running the following command:
sudo apt-get -y install libcache-mmap-perl
Install libcache-mmap-perl Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install libcache-mmap-perl using apt by running the following command:
sudo apt -y install libcache-mmap-perl
Install libcache-mmap-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-mmap-perl using aptitude by running the following command:
sudo aptitude -y install libcache-mmap-perl
How To Uninstall libcache-mmap-perl on Ubuntu 18.04
To uninstall only the libcache-mmap-perl package we can use the following command:
sudo apt-get remove libcache-mmap-perl
Uninstall libcache-mmap-perl And Its Dependencies
To uninstall libcache-mmap-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-mmap-perl
Remove libcache-mmap-perl Configurations and Data
To remove libcache-mmap-perl configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge libcache-mmap-perl
Remove libcache-mmap-perl configuration, data, and all of its dependencies
We can use the following command to remove libcache-mmap-perl configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libcache-mmap-perl
References
Summary
In this tutorial we learn how to install libcache-mmap-perl package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.