Tech Geek
1 min readNov 17, 2018

--

curl -O https://dl.google.com/go/go1.10.3.linux-amd64.tar.gz

Next, you can use sha256sum to verify the tarball:

sha256sum go1.10.3.linux-amd64.tar.gz

Sample Output:

go1.10.3.linux-amd64.tar.gz
fa1b0e45d3b647c252f51f5e1204aba049cde4af177ef9f2181f43004f901035 go1.10.3.linux-amd64.tar.gz

Next, use tar to extract the tarball. The x flag tells tar to extract, v tells it we want verbose output (a listing of the files being extracted), and f tells it we’ll specify a filename:

tar xvf go1.10.3.linux-amd64.tar.gz

You should now have a directory called go in your home directory. Recursively change go’s owner and group to root, and move it to /usr/local:

sudo chown -R root:root ./go
sudo mv go /usr/local

Note: Although /usr/local/go is the officially-recommended location, some users may prefer or require different paths.

--

--

Tech Geek
Tech Geek

Written by Tech Geek

I’m a software developer from India, currently working with blockchain.

No responses yet