How To Install golang-github-dvsekhvalnov-jose2go-dev on Ubuntu 18.04

In this tutorial we learn how to install golang-github-dvsekhvalnov-jose2go-dev on Ubuntu 18.04. golang-github-dvsekhvalnov-jose2go-dev is Go implementation of Javascript Object Signing and Encryption

Introduction

In this tutorial we learn how to install golang-github-dvsekhvalnov-jose2go-dev on Ubuntu 18.04.

What is golang-github-dvsekhvalnov-jose2go-dev

golang-github-dvsekhvalnov-jose2go-dev is:

Pure Golang (GO) library for generating, decoding and encrypting JSON Web Tokens. Zero dependency, relies only on standard library.

Supports full suite of signing, encryption and compression algorithms defined by JSON Web Algorithms as of July 4, 2014 version.

Extensively unit tested and cross tested (100+ tests) for compatibility with jose.4.j, Nimbus-JOSE-JWT, json-jwt and jose-jwt libraries.

This package contains the source.

There are three methods to install golang-github-dvsekhvalnov-jose2go-dev 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 golang-github-dvsekhvalnov-jose2go-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-dvsekhvalnov-jose2go-dev using apt-get by running the following command:

sudo apt-get -y install golang-github-dvsekhvalnov-jose2go-dev

Install golang-github-dvsekhvalnov-jose2go-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install golang-github-dvsekhvalnov-jose2go-dev using apt by running the following command:

sudo apt -y install golang-github-dvsekhvalnov-jose2go-dev

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

sudo aptitude -y install golang-github-dvsekhvalnov-jose2go-dev

How To Uninstall golang-github-dvsekhvalnov-jose2go-dev on Ubuntu 18.04

To uninstall only the golang-github-dvsekhvalnov-jose2go-dev package we can use the following command:

sudo apt-get remove golang-github-dvsekhvalnov-jose2go-dev

Uninstall golang-github-dvsekhvalnov-jose2go-dev And Its Dependencies

To uninstall golang-github-dvsekhvalnov-jose2go-dev and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove golang-github-dvsekhvalnov-jose2go-dev

Remove golang-github-dvsekhvalnov-jose2go-dev Configurations and Data

To remove golang-github-dvsekhvalnov-jose2go-dev configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge golang-github-dvsekhvalnov-jose2go-dev

Remove golang-github-dvsekhvalnov-jose2go-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge golang-github-dvsekhvalnov-jose2go-dev

References

Summary

In this tutorial we learn how to install golang-github-dvsekhvalnov-jose2go-dev package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.