How To Install libsys-mmap-perl on Debian 9
Introduction
In this tutorial we learn how to install libsys-mmap-perl
on Debian 9.
What is libsys-mmap-perl
libsys-mmap-perl is:
The Mmap module uses the POSIX mmap call to map in a file as a Perl variable. Memory access by mmap may be shared between threads or forked processes, and may be a disc file that has been mapped into memory. Sys::Mmap depends on your operating system supporting UNIX or POSIX.1b mmap, of course.
Note that PerlIO now defines a :mmap tag and presents mmap’d files as regular files, if that is your cup of joe.
Several processes may share one copy of the file or string, saving memory, and concurrently making changes to portions of the file or string. When not used with a file, it is an alternative to SysV shared memory. Unlike SysV shared memory, there are no arbitrary size limits on the shared memory area, and sparce memory usage is handled optimally on most modern UNIX implementations.
There are three methods to install libsys-mmap-perl
on Debian 9. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libsys-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 libsys-mmap-perl
using apt-get
by running the following command:
sudo apt-get -y install libsys-mmap-perl
Install libsys-mmap-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libsys-mmap-perl
using apt
by running the following command:
sudo apt -y install libsys-mmap-perl
Install libsys-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 Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libsys-mmap-perl
using aptitude
by running the following command:
sudo aptitude -y install libsys-mmap-perl
How To Uninstall libsys-mmap-perl on Debian 9
To uninstall only the libsys-mmap-perl
package we can use the following command:
sudo apt-get remove libsys-mmap-perl
Uninstall libsys-mmap-perl And Its Dependencies
To uninstall libsys-mmap-perl
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove libsys-mmap-perl
Remove libsys-mmap-perl Configurations and Data
To remove libsys-mmap-perl
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge libsys-mmap-perl
Remove libsys-mmap-perl configuration, data, and all of its dependencies
We can use the following command to remove libsys-mmap-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libsys-mmap-perl
Dependencies
libsys-mmap-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libsys-mmap-perl
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.