How To Install libgitlab-api-v4-perl on Debian 12

Learn how to install libgitlab-api-v4-perl on Debian 12 with this tutorial. libgitlab-api-v4-perl is GitLab API v4 module and command-line client

Introduction

In this tutorial we learn how to install libgitlab-api-v4-perl on Debian 12.

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 Debian 12. 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 Debian. 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 Debian 12

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 Debian 12, 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 Debian 12 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

Dependencies

libgitlab-api-v4-perl have the following dependencies:

References

Summary

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