How To Install libhttp-recorder-perl on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libhttp-recorder-perl on Ubuntu 20.04.
What is libhttp-recorder-perl
libhttp-recorder-perl is:
HTTP::Recorder allows your Perl program to record the interaction with websites (SSL and non-SSL). It acts as a proxy agent for HTTP::Proxy, rewriting HTTP requests and responses while recording the interaction in a script suitable for WWW::Mechanize. If a JavaScript-enabled browser is being used, the script can be examined and modified as it is being recorded.
Since version 0.06, libhttp-recorder-perl includes a script httprecorder to quickly set up a proxy and start recording traffic.
There are three methods to install libhttp-recorder-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 libhttp-recorder-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 libhttp-recorder-perl using apt-get by running the following command:
sudo apt-get -y install libhttp-recorder-perl
Install libhttp-recorder-perl Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install libhttp-recorder-perl using apt by running the following command:
sudo apt -y install libhttp-recorder-perl
Install libhttp-recorder-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 libhttp-recorder-perl using aptitude by running the following command:
sudo aptitude -y install libhttp-recorder-perl
How To Uninstall libhttp-recorder-perl on Ubuntu 20.04
To uninstall only the libhttp-recorder-perl package we can use the following command:
sudo apt-get remove libhttp-recorder-perl
Uninstall libhttp-recorder-perl And Its Dependencies
To uninstall libhttp-recorder-perl and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libhttp-recorder-perl
Remove libhttp-recorder-perl Configurations and Data
To remove libhttp-recorder-perl configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libhttp-recorder-perl
Remove libhttp-recorder-perl configuration, data, and all of its dependencies
We can use the following command to remove libhttp-recorder-perl configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libhttp-recorder-perl
References
Summary
In this tutorial we learn how to install libhttp-recorder-perl package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.