Install Go on Linux Mint 19.3
Here’s how to install Go on Ubuntu Linux Mint 19.3.
Download the latest from https://golang.org/dl/.
<pre lang="bash">
wget https://dl.google.com/go/go1.13.linux-amd64.tar.gz
Check the checksum.
<pre lang="bash">
sha256sum go1.13.linux-amd64.tar.gz
Extract the Go tarball to the /usr/local directory.
<pre lang="bash">
sudo tar -C /usr/local -xzf go1.13.linux-amd64.tar.gz
Edit your Bash profile to add Go’s path.
<pre lang="bash">
cd ~
vim ~/.profile
# Add Go's path
export PATH=$PATH:/usr/local/go/bin
# Load the profile
source ~/.profile
Check if Go is installed.
<pre lang="bash">
go version
Output.
<pre lang="bash">
go version go1.13 linux/amd64