How To Install libdevel-leak-perl on Debian 10
Introduction
In this tutorial we learn how to install libdevel-leak-perl
on Debian 10.
What is libdevel-leak-perl
libdevel-leak-perl is:
Devel::Leak has two functions: NoteSV and CheckSV.
NoteSV walks the perl internal table of allocated SVs (scalar values) - (which actually contains arrays and hashes too), and records their addresses in a table. It returns a count of these “things”, and stores a pointer to the table (which is obtained from the heap using malloc()) in its argument.
CheckSV is passed argument which holds a pointer to a table created by NoteSV. It re-walks the perl-internals and calls sv_dump() for any “things” which did not exist when NoteSV was called. It returns a count of the number of “things” now allocated.
There are three methods to install libdevel-leak-perl
on Debian 10. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libdevel-leak-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 libdevel-leak-perl
using apt-get
by running the following command:
sudo apt-get -y install libdevel-leak-perl
Install libdevel-leak-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libdevel-leak-perl
using apt
by running the following command:
sudo apt -y install libdevel-leak-perl
Install libdevel-leak-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 libdevel-leak-perl
using aptitude
by running the following command:
sudo aptitude -y install libdevel-leak-perl
How To Uninstall libdevel-leak-perl on Debian 10
To uninstall only the libdevel-leak-perl
package we can use the following command:
sudo apt-get remove libdevel-leak-perl
Uninstall libdevel-leak-perl And Its Dependencies
To uninstall libdevel-leak-perl
and its dependencies that are no longer needed by Debian 10, we can use the command below:
sudo apt-get -y autoremove libdevel-leak-perl
Remove libdevel-leak-perl Configurations and Data
To remove libdevel-leak-perl
configuration and data from Debian 10 we can use the following command:
sudo apt-get -y purge libdevel-leak-perl
Remove libdevel-leak-perl configuration, data, and all of its dependencies
We can use the following command to remove libdevel-leak-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libdevel-leak-perl
Dependencies
libdevel-leak-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libdevel-leak-perl
package on Debian 10 using different package management tools: apt
, apt-get
and aptitude
.