How To Install libweasel-perl on Ubuntu 22.04
Introduction
In this tutorial we learn how to install libweasel-perl
on Ubuntu 22.04.
What is libweasel-perl
libweasel-perl is:
Weasel abstracts away the differences between the various web-driver protocols, like the Mink project does for PHP.
While heavily inspired by Mink, Weasel aims to improve over it by being extensible, providing not just access to the underlying browser, yet to provide building blocks for further development and abstraction.
Pherkin::Extension::Weasel provides integration with Test::BDD::Cucumber (aka pherkin), for BDD testing.
For the actual page interaction, this module needs a driver to be installed. Currently, that means Weasel::Driver::Selenium2, in Debian packaged as libweasel-driver-selenium2-perl.
There are three methods to install libweasel-perl
on Ubuntu 22.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 libweasel-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 libweasel-perl
using apt-get
by running the following command:
sudo apt-get -y install libweasel-perl
Install libweasel-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libweasel-perl
using apt
by running the following command:
sudo apt -y install libweasel-perl
Install libweasel-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 libweasel-perl
using aptitude
by running the following command:
sudo aptitude -y install libweasel-perl
How To Uninstall libweasel-perl on Ubuntu 22.04
To uninstall only the libweasel-perl
package we can use the following command:
sudo apt-get remove libweasel-perl
Uninstall libweasel-perl And Its Dependencies
To uninstall libweasel-perl
and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove libweasel-perl
Remove libweasel-perl Configurations and Data
To remove libweasel-perl
configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge libweasel-perl
Remove libweasel-perl configuration, data, and all of its dependencies
We can use the following command to remove libweasel-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libweasel-perl
References
Summary
In this tutorial we learn how to install libweasel-perl
package on Ubuntu 22.04 using different package management tools: apt
, apt-get
and aptitude
.