How To Install libwebinject-perl on Ubuntu 18.04

In this tutorial we learn how to install libwebinject-perl on Ubuntu 18.04. libwebinject-perl is Perl Module for testing web services

Introduction

In this tutorial we learn how to install libwebinject-perl on Ubuntu 18.04.

What is libwebinject-perl

libwebinject-perl is:

WebInject is a free tool for automated testing of web applications and web services. It can be used to test individual system components that have HTTP interfaces (JSP, ASP, CGI, PHP, AJAX, Servlets, HTML Forms, XML/SOAP Web Services, REST, etc), and can be used as a test harness to create a suite of [HTTP level] automated functional, acceptance, and regression tests. A test harness allows you to run many test cases and collect/report your results. WebInject offers real-time results display and may also be used for monitoring system response times.

There are three methods to install libwebinject-perl on Ubuntu 18.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 libwebinject-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 libwebinject-perl using apt-get by running the following command:

sudo apt-get -y install libwebinject-perl

Install libwebinject-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libwebinject-perl using apt by running the following command:

sudo apt -y install libwebinject-perl

Install libwebinject-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 libwebinject-perl using aptitude by running the following command:

sudo aptitude -y install libwebinject-perl

How To Uninstall libwebinject-perl on Ubuntu 18.04

To uninstall only the libwebinject-perl package we can use the following command:

sudo apt-get remove libwebinject-perl

Uninstall libwebinject-perl And Its Dependencies

To uninstall libwebinject-perl and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libwebinject-perl

Remove libwebinject-perl Configurations and Data

To remove libwebinject-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libwebinject-perl

Remove libwebinject-perl configuration, data, and all of its dependencies

We can use the following command to remove libwebinject-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libwebinject-perl

References

Summary

In this tutorial we learn how to install libwebinject-perl package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.