How To Install libweb-api-perl on Debian 10

Learn how to install libweb-api-perl on Debian 10 with this tutorial. libweb-api-perl is simple base module for implementing RESTful APIs

Introduction

In this tutorial we learn how to install libweb-api-perl on Debian 10.

What is libweb-api-perl

libweb-api-perl is:

Web::API is a simple base module to implement almost any RESTful API with just a few lines of configuration. Implement the RESTful API of your choice in 10 minutes, roughly.

There are three methods to install libweb-api-perl on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libweb-api-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 libweb-api-perl using apt-get by running the following command:

sudo apt-get -y install libweb-api-perl

Install libweb-api-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libweb-api-perl

Install libweb-api-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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install libweb-api-perl

How To Uninstall libweb-api-perl on Debian 10

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

sudo apt-get remove libweb-api-perl

Uninstall libweb-api-perl And Its Dependencies

To uninstall libweb-api-perl and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove libweb-api-perl

Remove libweb-api-perl Configurations and Data

To remove libweb-api-perl configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge libweb-api-perl

Remove libweb-api-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libweb-api-perl

Dependencies

libweb-api-perl have the following dependencies:

References

Summary

In this tutorial we learn how to install libweb-api-perl package on Debian 10 using different package management tools: apt, apt-get and aptitude.