How To Install golang-github-flynn-json5-dev on Kali Linux

In this tutorial we learn how to install golang-github-flynn-json5-dev on Kali Linux. golang-github-flynn-json5-dev is Go JSON5 decoder package based on encoding/json

Introduction

In this tutorial we learn how to install golang-github-flynn-json5-dev on Kali Linux.

What is golang-github-flynn-json5-dev

golang-github-flynn-json5-dev is:

This is a Go package that implements decoding of JSON5 values. It provides various functions like Unmarshal, NewDecoder, Buffered, Decode, UseNumber, Error, Float64, Int64, String, UnmarshalJSON. The description of the various functions it supports is as following

Unmarshal - Itparses the JSON-encoded data and stores the result in the value pointed to by v. Decoder - Itreads and decodes JSON values from an input stream. NewDecoder - Itreturns a new decoder that reads from r. Buffered - It returns a reader of the data remaining in the Decoder’s buffer. The reader is valid until the next call to Decode. Decode - Itreads the next JSON-encoded value from its input and stores it in the value pointed to by v. UseNumber - Itcauses the Decoder to unmarshal a number into an interface{} as a Number instead of as a float64. Float64 - Itreturns the number as a float64. Int64 - Itreturns the number as an int64. String - Itreturns the literal text of the number. UnmarshalJSON - It sets *m to a copy of data.

There are three methods to install golang-github-flynn-json5-dev on Kali Linux. 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-flynn-json5-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-flynn-json5-dev using apt-get by running the following command:

sudo apt-get -y install golang-github-flynn-json5-dev

Install golang-github-flynn-json5-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install golang-github-flynn-json5-dev

Install golang-github-flynn-json5-dev Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install golang-github-flynn-json5-dev using aptitude by running the following command:

sudo aptitude -y install golang-github-flynn-json5-dev

How To Uninstall golang-github-flynn-json5-dev on Kali Linux

To uninstall only the golang-github-flynn-json5-dev package we can use the following command:

sudo apt-get remove golang-github-flynn-json5-dev

Uninstall golang-github-flynn-json5-dev And Its Dependencies

To uninstall golang-github-flynn-json5-dev and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove golang-github-flynn-json5-dev

Remove golang-github-flynn-json5-dev Configurations and Data

To remove golang-github-flynn-json5-dev configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge golang-github-flynn-json5-dev

Remove golang-github-flynn-json5-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge golang-github-flynn-json5-dev

Dependencies

golang-github-flynn-json5-dev have the following dependencies:

References

Summary

In this tutorial we learn how to install golang-github-flynn-json5-dev package on Kali Linux using different package management tools: apt, apt-get and aptitude.