How To Install libdevel-nytprof-perl on Kali Linux
Introduction
In this tutorial we learn how to install libdevel-nytprof-perl
on Kali Linux.
What is libdevel-nytprof-perl
libdevel-nytprof-perl is:
Devel::NYTProf is a powerful feature-rich perl source code profiler.
- Performs per-line statement profiling for fine detail
- Performs per-subroutine statement profiling for overview
- Performs per-block statement profiling (the first profiler to do so)
- Accounts correctly for time spent after calls return
- Performs inclusive and exclusive timing of subroutines
- Subroutine times are per calling location (a powerful feature)
- Can profile compile-time activity, just run-time, or just END time
- Uses novel techniques for efficient profiling
- Sub-microsecond (100ns) resolution on systems with clock_gettime()
- Very fast - the fastest statement and subroutine profilers for perl
- Handles applications that fork, with no performance cost
- Immune from noise caused by profiling overheads and I/O
- Program being profiled can stop/start the profiler
- Generates richly annotated and cross-linked html reports
- Trivial to use with mod_perl - add one line to httpd.conf
- Includes an extensive test suite
- Tested on very large codebases
NYTProf is effectively two profilers in one: a statement profiler, and a subroutine profiler.
NYTProf stands for ‘New York Times Profiler’. Indeed, this module was initially developed from Devel::FastProf by The New York Times Co. to help their developers quickly identify bottlenecks in large Perl applications.
There are three methods to install libdevel-nytprof-perl
on Kali Linux. 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-nytprof-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-nytprof-perl
using apt-get
by running the following command:
sudo apt-get -y install libdevel-nytprof-perl
Install libdevel-nytprof-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libdevel-nytprof-perl
using apt
by running the following command:
sudo apt -y install libdevel-nytprof-perl
Install libdevel-nytprof-perl Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libdevel-nytprof-perl
using aptitude
by running the following command:
sudo aptitude -y install libdevel-nytprof-perl
How To Uninstall libdevel-nytprof-perl on Kali Linux
To uninstall only the libdevel-nytprof-perl
package we can use the following command:
sudo apt-get remove libdevel-nytprof-perl
Uninstall libdevel-nytprof-perl And Its Dependencies
To uninstall libdevel-nytprof-perl
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libdevel-nytprof-perl
Remove libdevel-nytprof-perl Configurations and Data
To remove libdevel-nytprof-perl
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libdevel-nytprof-perl
Remove libdevel-nytprof-perl configuration, data, and all of its dependencies
We can use the following command to remove libdevel-nytprof-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libdevel-nytprof-perl
Dependencies
libdevel-nytprof-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libdevel-nytprof-perl
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.