How To Install golang-github-dpotapov-go-spnego-dev on Ubuntu 22.04

In this tutorial we learn how to install golang-github-dpotapov-go-spnego-dev on Ubuntu 22.04. golang-github-dpotapov-go-spnego-dev is Golang library to make HTTP calls with Kerberos authentication

Introduction

In this tutorial we learn how to install golang-github-dpotapov-go-spnego-dev on Ubuntu 22.04.

What is golang-github-dpotapov-go-spnego-dev

golang-github-dpotapov-go-spnego-dev is:

The package extends Go’s HTTP Transport allowing Kerberos authentication through Negotiate mechanism (see RFC4559 (https://tools.ietf.org/html/rfc4559)).

Internally it is implemented by wrapping 2 libraries: gokrb5 (https://github.com/jcmturner/gokrb5) on Linux and sspi (https://github.com/alexbrainman/sspi) on Windows.

There is no pre-authenticaion yet, so the library assumes you have Kerberos ticket obtained.

Linux implementation requires MIT or Heimdal Kerberos to be present. Windows implementation utilizes credentials of currently logged in user.

Currently it allows only to make HTTP calls, no server side support yet.

There are three methods to install golang-github-dpotapov-go-spnego-dev on Ubuntu 22.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 golang-github-dpotapov-go-spnego-dev Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install golang-github-dpotapov-go-spnego-dev using apt-get by running the following command:

sudo apt-get -y install golang-github-dpotapov-go-spnego-dev

Install golang-github-dpotapov-go-spnego-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install golang-github-dpotapov-go-spnego-dev using apt by running the following command:

sudo apt -y install golang-github-dpotapov-go-spnego-dev

Install golang-github-dpotapov-go-spnego-dev 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 golang-github-dpotapov-go-spnego-dev using aptitude by running the following command:

sudo aptitude -y install golang-github-dpotapov-go-spnego-dev

How To Uninstall golang-github-dpotapov-go-spnego-dev on Ubuntu 22.04

To uninstall only the golang-github-dpotapov-go-spnego-dev package we can use the following command:

sudo apt-get remove golang-github-dpotapov-go-spnego-dev

Uninstall golang-github-dpotapov-go-spnego-dev And Its Dependencies

To uninstall golang-github-dpotapov-go-spnego-dev and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:

sudo apt-get -y autoremove golang-github-dpotapov-go-spnego-dev

Remove golang-github-dpotapov-go-spnego-dev Configurations and Data

To remove golang-github-dpotapov-go-spnego-dev configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge golang-github-dpotapov-go-spnego-dev

Remove golang-github-dpotapov-go-spnego-dev configuration, data, and all of its dependencies

We can use the following command to remove golang-github-dpotapov-go-spnego-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge golang-github-dpotapov-go-spnego-dev

References

Summary

In this tutorial we learn how to install golang-github-dpotapov-go-spnego-dev package on Ubuntu 22.04 using different package management tools: apt, apt-get and aptitude.