How To Install libgitlab-api-v4-perl on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libgitlab-api-v4-perl
on Ubuntu 20.04.
What is libgitlab-api-v4-perl
libgitlab-api-v4-perl is:
GitLab::API::v4 provides a one-to-one interface with the GitLab API v4. Detailed information in GitLab’s API can be found at http://doc.gitlab.com/ce/api/README.html.
This package also includes the gitlab-api-v4 command-line interface (CLI).
There are three methods to install libgitlab-api-v4-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 libgitlab-api-v4-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 libgitlab-api-v4-perl
using apt-get
by running the following command:
sudo apt-get -y install libgitlab-api-v4-perl
Install libgitlab-api-v4-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libgitlab-api-v4-perl
using apt
by running the following command:
sudo apt -y install libgitlab-api-v4-perl
Install libgitlab-api-v4-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 libgitlab-api-v4-perl
using aptitude
by running the following command:
sudo aptitude -y install libgitlab-api-v4-perl
How To Uninstall libgitlab-api-v4-perl on Ubuntu 20.04
To uninstall only the libgitlab-api-v4-perl
package we can use the following command:
sudo apt-get remove libgitlab-api-v4-perl
Uninstall libgitlab-api-v4-perl And Its Dependencies
To uninstall libgitlab-api-v4-perl
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libgitlab-api-v4-perl
Remove libgitlab-api-v4-perl Configurations and Data
To remove libgitlab-api-v4-perl
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libgitlab-api-v4-perl
Remove libgitlab-api-v4-perl configuration, data, and all of its dependencies
We can use the following command to remove libgitlab-api-v4-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libgitlab-api-v4-perl
References
Summary
In this tutorial we learn how to install libgitlab-api-v4-perl
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.