How To Install liblwp-authen-negotiate-perl on Ubuntu 18.04

In this tutorial we learn how to install liblwp-authen-negotiate-perl on Ubuntu 18.04. liblwp-authen-negotiate-perl is Perl module for GSSAPI based Authentication Plugin for LWP

Introduction

In this tutorial we learn how to install liblwp-authen-negotiate-perl on Ubuntu 18.04.

What is liblwp-authen-negotiate-perl

liblwp-authen-negotiate-perl is:

This is the CPAN Perl module LWP::Authen::Negotiate.

LWP::Authen::Negotiate is a transparent authentication plugin for LWP. The LWP::UserAgent will do authentication transparently based on your GSSAPI installation (MIT Kerberos or Heimdal).

There are three methods to install liblwp-authen-negotiate-perl on Ubuntu 18.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 liblwp-authen-negotiate-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 liblwp-authen-negotiate-perl using apt-get by running the following command:

sudo apt-get -y install liblwp-authen-negotiate-perl

Install liblwp-authen-negotiate-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install liblwp-authen-negotiate-perl

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

sudo aptitude -y install liblwp-authen-negotiate-perl

How To Uninstall liblwp-authen-negotiate-perl on Ubuntu 18.04

To uninstall only the liblwp-authen-negotiate-perl package we can use the following command:

sudo apt-get remove liblwp-authen-negotiate-perl

Uninstall liblwp-authen-negotiate-perl And Its Dependencies

To uninstall liblwp-authen-negotiate-perl and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove liblwp-authen-negotiate-perl

Remove liblwp-authen-negotiate-perl Configurations and Data

To remove liblwp-authen-negotiate-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge liblwp-authen-negotiate-perl

Remove liblwp-authen-negotiate-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge liblwp-authen-negotiate-perl

References

Summary

In this tutorial we learn how to install liblwp-authen-negotiate-perl package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.