How To Install libgssapi-perl on Debian 9

In this tutorial we learn how to install libgssapi-perl on Debian 9. libgssapi-perl is Perl extension providing access to the GSSAPIv2 library

Introduction

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

What is libgssapi-perl

libgssapi-perl is:

This module gives access to the routines of the GSSAPI library, as described in rfc2743 and rfc2744 and implemented by the Kerberos-1.2 distribution from MIT.

The API presented by this module is a mildly object oriented reinterpretation of the C API, where opaque C structures are Perl objects, but the style of function call has been left mostly untouched. As a result, most routines modify one or more of the parameters passed to them, reflecting the C call-by-reference (or call-by-value-return) semantics.

There are three methods to install libgssapi-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 libgssapi-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 libgssapi-perl using apt-get by running the following command:

sudo apt-get -y install libgssapi-perl

Install libgssapi-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libgssapi-perl

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

sudo aptitude -y install libgssapi-perl

How To Uninstall libgssapi-perl on Debian 9

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

sudo apt-get remove libgssapi-perl

Uninstall libgssapi-perl And Its Dependencies

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

sudo apt-get -y autoremove libgssapi-perl

Remove libgssapi-perl Configurations and Data

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

sudo apt-get -y purge libgssapi-perl

Remove libgssapi-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libgssapi-perl

Dependencies

libgssapi-perl have the following dependencies:

References

Summary

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