note

note

To install Go on Ubuntu, you can follow these steps: 1. Open the terminal on your Ubuntu system. 2. Update the package list by running the command: sudo apt update 3. Install the Go programming language by running the command: sudo apt install golang 4. Verify the installation by checking the Go version: go version That's it! Go is now installed on your Ubuntu system.

VERSION="1.18.8"
#  download go binary files
wget https://golang.org/dl/go${VERSION}.linux-amd64.tar.gz -O go${VERSION}.linux-amd64.tar.gz

# extract from tar.gz file, and move go binary to /usr/local
tar zxvf go${VERSION}.linux-amd64.tar.gz  && sudo mv go /usr/local/

# setup go PATH env
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc
source ~/.bashrc

# check go version
go version

Translation:

VERSION="1.18.8"
# Download go binary files
wget https://golang.org/dl/go${VERSION}.linux-amd64.tar.gz -O go${VERSION}.linux-amd64.tar.gz

# Extract from tar.gz file, and move go binary to /usr/local
tar zxvf go${VERSION}.linux-amd64.tar.gz  && sudo mv go /usr/local/

# Setup go PATH environment variable
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc
source ~/.bashrc

# Check go version
go version
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.