How To Install libwww-mechanize-perl on Kali Linux
Introduction
In this tutorial we learn how to install libwww-mechanize-perl on Kali Linux.
What is libwww-mechanize-perl
libwww-mechanize-perl is:
WWW::Mechanize, or Mech for short, helps you automate interaction with a website. It supports performing a sequence of page fetches including following links and submitting forms. Each fetched page is parsed and its links and forms are extracted. A link or a form can be selected, form fields can be filled and the next page can be fetched. Mech also stores a history of the URLs you’ve visited, which can be queried and revisited.
There are three methods to install libwww-mechanize-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 libwww-mechanize-perl Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install libwww-mechanize-perl using apt-get by running the following command:
sudo apt-get -y install libwww-mechanize-perlInstall libwww-mechanize-perl Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install libwww-mechanize-perl using apt by running the following command:
sudo apt -y install libwww-mechanize-perlInstall libwww-mechanize-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 updateAfter updating apt database, We can install libwww-mechanize-perl using aptitude by running the following command:
sudo aptitude -y install libwww-mechanize-perlHow To Uninstall libwww-mechanize-perl on Kali Linux
To uninstall only the libwww-mechanize-perl package we can use the following command:
sudo apt-get remove libwww-mechanize-perlUninstall libwww-mechanize-perl And Its Dependencies
To uninstall libwww-mechanize-perl and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libwww-mechanize-perlRemove libwww-mechanize-perl Configurations and Data
To remove libwww-mechanize-perl configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libwww-mechanize-perlRemove libwww-mechanize-perl configuration, data, and all of its dependencies
We can use the following command to remove libwww-mechanize-perl configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libwww-mechanize-perlDependencies
libwww-mechanize-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libwww-mechanize-perl package on Kali Linux using different package management tools: apt, apt-get and aptitude.