How To Install libponapi-client-perl on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libponapi-client-perl
on Ubuntu 20.04.
What is libponapi-client-perl
libponapi-client-perl is:
PONAPI::Client is a JSON:API compliant client; it should be able to communicate with any API-compliant service.
The client does a handful of checks required by the spec, then uses Hijk to communicate with the service.
In most cases, all API methods return a response document:
my $response = $client->retrieve(…);
In list context however, all API methods will return the request status and the document:
my ($status, $response) = $client->retrieve(…)
There are three methods to install libponapi-client-perl
on Ubuntu 20.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 libponapi-client-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 libponapi-client-perl
using apt-get
by running the following command:
sudo apt-get -y install libponapi-client-perl
Install libponapi-client-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libponapi-client-perl
using apt
by running the following command:
sudo apt -y install libponapi-client-perl
Install libponapi-client-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 libponapi-client-perl
using aptitude
by running the following command:
sudo aptitude -y install libponapi-client-perl
How To Uninstall libponapi-client-perl on Ubuntu 20.04
To uninstall only the libponapi-client-perl
package we can use the following command:
sudo apt-get remove libponapi-client-perl
Uninstall libponapi-client-perl And Its Dependencies
To uninstall libponapi-client-perl
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libponapi-client-perl
Remove libponapi-client-perl Configurations and Data
To remove libponapi-client-perl
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libponapi-client-perl
Remove libponapi-client-perl configuration, data, and all of its dependencies
We can use the following command to remove libponapi-client-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libponapi-client-perl
References
Summary
In this tutorial we learn how to install libponapi-client-perl
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.