How To Install golang-easyjson on Kali Linux
Introduction
In this tutorial we learn how to install golang-easyjson on Kali Linux.
What is golang-easyjson
golang-easyjson is:
easyjson allows (un-)marshaling of JSON golang structs without the use of reflection by generating marshaller code.
One of the aims of the library is to keep generated code simple enough so that it can be easily optimized or fixed. Another goal is to provide users with ability to customize the generated code not available in ’encoding/json’, such as generating snake_case names or enabling ‘omitempty’ behavior by default.
This package contains the command-line client.
There are three methods to install golang-easyjson 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-easyjson Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install golang-easyjson using apt-get by running the following command:
sudo apt-get -y install golang-easyjsonInstall golang-easyjson Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install golang-easyjson using apt by running the following command:
sudo apt -y install golang-easyjsonInstall golang-easyjson 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 updateAfter updating apt database, We can install golang-easyjson using aptitude by running the following command:
sudo aptitude -y install golang-easyjsonHow To Uninstall golang-easyjson on Kali Linux
To uninstall only the golang-easyjson package we can use the following command:
sudo apt-get remove golang-easyjsonUninstall golang-easyjson And Its Dependencies
To uninstall golang-easyjson and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove golang-easyjsonRemove golang-easyjson Configurations and Data
To remove golang-easyjson configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge golang-easyjsonRemove golang-easyjson configuration, data, and all of its dependencies
We can use the following command to remove golang-easyjson configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge golang-easyjsonDependencies
golang-easyjson have the following dependencies:
References
Summary
In this tutorial we learn how to install golang-easyjson package on Kali Linux using different package management tools: apt, apt-get and aptitude.