How To Install libdevel-callsite-perl on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libdevel-callsite-perl
on Ubuntu 20.04.
What is libdevel-callsite-perl
libdevel-callsite-perl is:
Devel::Callsite module provides subroutines to get the caller return OP address and perl interpreter context.
The callsite() function returns the OP address of the caller, a number, one level up from where it was called. It’s useful for functions that need to uniquely know where they were called, such as Every::every(); see Every. Or it can be used to pinpoint a location with finer granularity than a line number (see http://www.perlmonks.com/?node_id=987268). In conjunction with an OP tree disassembly you can know exactly where the caller is located in the Perl source.
The context() function returns the interpreter context as a number. This is a fairly unique number together with the call site.
There are three methods to install libdevel-callsite-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 libdevel-callsite-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-callsite-perl
using apt-get
by running the following command:
sudo apt-get -y install libdevel-callsite-perl
Install libdevel-callsite-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libdevel-callsite-perl
using apt
by running the following command:
sudo apt -y install libdevel-callsite-perl
Install libdevel-callsite-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 libdevel-callsite-perl
using aptitude
by running the following command:
sudo aptitude -y install libdevel-callsite-perl
How To Uninstall libdevel-callsite-perl on Ubuntu 20.04
To uninstall only the libdevel-callsite-perl
package we can use the following command:
sudo apt-get remove libdevel-callsite-perl
Uninstall libdevel-callsite-perl And Its Dependencies
To uninstall libdevel-callsite-perl
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libdevel-callsite-perl
Remove libdevel-callsite-perl Configurations and Data
To remove libdevel-callsite-perl
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libdevel-callsite-perl
Remove libdevel-callsite-perl configuration, data, and all of its dependencies
We can use the following command to remove libdevel-callsite-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libdevel-callsite-perl
References
Summary
In this tutorial we learn how to install libdevel-callsite-perl
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.