<\/span><\/h2>\n\n\n\nFirst, you will need to download the latest version of the Go tarball from the Go official website. At the time of writing this article, the latest stable version of Go is version 1.12.7.<\/p>\n\n\n\n
To download the Go tarball, run the following command:<\/p>\n\n\n\n
wget https:\/\/dl.google.com\/go\/go1.12.7.linux-amd64.tar.gz<\/pre>\n\n\n\nOnce the tarball is downloaded, verify the tarball checksum with the following command:<\/p>\n\n\n\n
sha256sum go1.12.7.linux-amd64.tar.gz<\/pre>\n\n\n\nYou should see an output that looks similar to the one below:<\/p>\n\n\n\n
66d83bfb5a9ede000e33c6579a91a29e6b101829ad41fffb5c5bb6c900e109d9<\/pre>\n\n\n\nCompare the hash value from the above output to the checksum value on the Go download page. If they match that means the integrity of the file validated and you can proceed with the installation.<\/p>\n\n\n\n
Next, extract the downloaded file to the \/usr\/local<\/code> directory with the following command:<\/p>\n\n\n\ntar -C \/usr\/local -xvzf go1.12.7.linux-amd64.tar.gz<\/pre>\n\n\n\n