On the Linux console, use the following commands to install the required packages.
In our example, the Go software was installed under the /usr/local folder.
In order to work properly, the Go software expect the system to have a set of environment variables.
Let's create a file to automate the required environment variables configuration.
Here is the go.sh file content.
Now, let's reboot the computer and check if the required environment variables will be created automatically.
Use the following command to check if the environment variables were created.
Test the Go program using the following command.
You have finished the installation of the GO software.