How To Install libgit-repository-perl on Debian 9

In this tutorial we learn how to install libgit-repository-perl on Debian 9. libgit-repository-perl is Perl interface to Git repositories

Introduction

In this tutorial we learn how to install libgit-repository-perl on Debian 9.

What is libgit-repository-perl

libgit-repository-perl is:

Git::Repository is a Perl interface to Git, for scripted interactions with repositories. It’s a low-level interface that allows calling any Git command, whether porcelain or plumbing, including bidirectional commands such as git commit-tree.

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

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

sudo apt-get -y install libgit-repository-perl

Install libgit-repository-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libgit-repository-perl

Install libgit-repository-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 libgit-repository-perl using aptitude by running the following command:

sudo aptitude -y install libgit-repository-perl

How To Uninstall libgit-repository-perl on Debian 9

To uninstall only the libgit-repository-perl package we can use the following command:

sudo apt-get remove libgit-repository-perl

Uninstall libgit-repository-perl And Its Dependencies

To uninstall libgit-repository-perl and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove libgit-repository-perl

Remove libgit-repository-perl Configurations and Data

To remove libgit-repository-perl configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge libgit-repository-perl

Remove libgit-repository-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libgit-repository-perl

Dependencies

libgit-repository-perl have the following dependencies:

References

Summary

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