How To Install libsub-delete-perl on Debian 9
Introduction
In this tutorial we learn how to install libsub-delete-perl
on Debian 9.
What is libsub-delete-perl
libsub-delete-perl is:
Sub::Delete provides one function, delete_sub, that deletes the subroutine whose name is passed to it. (To load the module without importing the function, write use Sub::Delete();.)
This does more than simply undefine the subroutine in the manner of undef &foo, which leaves a stub that can trigger AUTOLOAD (and, consequently, won’t work for deleting methods). The subroutine is completely obliterated from the symbol table (though there may be references to it elsewhere, including in compiled code).
There are three methods to install libsub-delete-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 libsub-delete-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 libsub-delete-perl
using apt-get
by running the following command:
sudo apt-get -y install libsub-delete-perl
Install libsub-delete-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libsub-delete-perl
using apt
by running the following command:
sudo apt -y install libsub-delete-perl
Install libsub-delete-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 libsub-delete-perl
using aptitude
by running the following command:
sudo aptitude -y install libsub-delete-perl
How To Uninstall libsub-delete-perl on Debian 9
To uninstall only the libsub-delete-perl
package we can use the following command:
sudo apt-get remove libsub-delete-perl
Uninstall libsub-delete-perl And Its Dependencies
To uninstall libsub-delete-perl
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove libsub-delete-perl
Remove libsub-delete-perl Configurations and Data
To remove libsub-delete-perl
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge libsub-delete-perl
Remove libsub-delete-perl configuration, data, and all of its dependencies
We can use the following command to remove libsub-delete-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libsub-delete-perl
Dependencies
libsub-delete-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libsub-delete-perl
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.