Installing golang on Linux

Installing golang on linux is easy:

  1. Go to the golang downloads page and download the latest linux tarball: https://golang.org/dl/
  2. Run: sudo tar -xzf -C /usr/local -f ~/Downloads/go1.17.3.linux-amd64.tar.gz
  3. Edit ~/.profile and add a line: PATH=$PATH:/usr/local/go/bin
  4. Just this once, source the file: . ~/.profile

Replace the filename in step 2 with the name of the tarball you downloaded. You should now be able to run the go command.

About jimbelton

I'm a software developer, and a writer of both fiction and non-fiction, and I blog about movies, books, and philosophy. My interest in religious philosophy and the search for the truth inspires much of my writing.
This entry was posted in golang programming and tagged , . Bookmark the permalink.

Leave a comment