How To Install golang-github-gcla-deep-dev on Ubuntu 20.04
Introduction
In this tutorial we learn how to install golang-github-gcla-deep-dev on Ubuntu 20.04.
What is golang-github-gcla-deep-dev
golang-github-gcla-deep-dev is:
Deep Variable Equality for Humans.
This package provides a single function: deep.Equal. It’s like reflect.DeepEqual (http://golang.org/pkg/reflect/#DeepEqual) but much friendlier to humans (or any sentient being) for two reason: • deep.Equal returns a list of differences • deep.Equal does not compare unexported fields (by default)
This is a fork of go-test/deep package with an additional feature.
Message from author about changes made in fork: Some packages may require Equal()’s parameters to be set in a particular way that is incompatible with other users within the same program. The global configuration parameters can be changed and restored, but this could lead to bugs due to race conditions. This commit makes the parameters that control Equal()’s operation part of a structure, Comparer, for which Equal() is now a method. Users can configure their own Comparer struct if desired. To preserve the existing package interface, the package-level Equals() method will use a default Comparer object that relies on pointers to the current global configuration parameters (pointers so that the operation of the global Equals() function will change immediately upon changing the value of any global configuration setting).
There are three methods to install golang-github-gcla-deep-dev on Ubuntu 20.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-gcla-deep-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-gcla-deep-dev using apt-get by running the following command:
sudo apt-get -y install golang-github-gcla-deep-dev
Install golang-github-gcla-deep-dev Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install golang-github-gcla-deep-dev using apt by running the following command:
sudo apt -y install golang-github-gcla-deep-dev
Install golang-github-gcla-deep-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-gcla-deep-dev using aptitude by running the following command:
sudo aptitude -y install golang-github-gcla-deep-dev
How To Uninstall golang-github-gcla-deep-dev on Ubuntu 20.04
To uninstall only the golang-github-gcla-deep-dev package we can use the following command:
sudo apt-get remove golang-github-gcla-deep-dev
Uninstall golang-github-gcla-deep-dev And Its Dependencies
To uninstall golang-github-gcla-deep-dev and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove golang-github-gcla-deep-dev
Remove golang-github-gcla-deep-dev Configurations and Data
To remove golang-github-gcla-deep-dev configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge golang-github-gcla-deep-dev
Remove golang-github-gcla-deep-dev configuration, data, and all of its dependencies
We can use the following command to remove golang-github-gcla-deep-dev configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge golang-github-gcla-deep-dev
References
Summary
In this tutorial we learn how to install golang-github-gcla-deep-dev package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.