How To Install libtest-http-server-simple-stashwarnings-perl on Ubuntu 18.04

In this tutorial we learn how to install libtest-http-server-simple-stashwarnings-perl on Ubuntu 18.04. libtest-http-server-simple-stashwarnings-perl is module to catch forked web servers warnings in Test

Introduction

In this tutorial we learn how to install libtest-http-server-simple-stashwarnings-perl on Ubuntu 18.04.

What is libtest-http-server-simple-stashwarnings-perl

libtest-http-server-simple-stashwarnings-perl is:

Test::HTTP::Server::Simple-StashWarnings, based on Test::HTTP::Server::Simple, lets you retrieve the warnings that your forked HTTP::Server::Simple-based web server throws. That way you can test that your application continues to throw warnings when it makes sense. Catching the warnings also keeps your test output tidy. Finally, you’ll be able to see when your application throws new, unexpected warnings.

There are three methods to install libtest-http-server-simple-stashwarnings-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 libtest-http-server-simple-stashwarnings-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 libtest-http-server-simple-stashwarnings-perl using apt-get by running the following command:

sudo apt-get -y install libtest-http-server-simple-stashwarnings-perl

Install libtest-http-server-simple-stashwarnings-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libtest-http-server-simple-stashwarnings-perl using apt by running the following command:

sudo apt -y install libtest-http-server-simple-stashwarnings-perl

Install libtest-http-server-simple-stashwarnings-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 libtest-http-server-simple-stashwarnings-perl using aptitude by running the following command:

sudo aptitude -y install libtest-http-server-simple-stashwarnings-perl

How To Uninstall libtest-http-server-simple-stashwarnings-perl on Ubuntu 18.04

To uninstall only the libtest-http-server-simple-stashwarnings-perl package we can use the following command:

sudo apt-get remove libtest-http-server-simple-stashwarnings-perl

Uninstall libtest-http-server-simple-stashwarnings-perl And Its Dependencies

To uninstall libtest-http-server-simple-stashwarnings-perl and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libtest-http-server-simple-stashwarnings-perl

Remove libtest-http-server-simple-stashwarnings-perl Configurations and Data

To remove libtest-http-server-simple-stashwarnings-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libtest-http-server-simple-stashwarnings-perl

Remove libtest-http-server-simple-stashwarnings-perl configuration, data, and all of its dependencies

We can use the following command to remove libtest-http-server-simple-stashwarnings-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libtest-http-server-simple-stashwarnings-perl

References

Summary

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