Step 1: Download the Go 1.26 Tarball
Step 2: Extract the Toolchain Step 3: Configure Environment Variables
bash
wget https://go.dev/dl/go1.26.0.linux-amd64.tar.gzStep 2: Extract the Toolchain
bash
sudo tar -C /usr/local -xzf go1.26.0.linux-amd64.tar.gzStep 3: Configure Environment Variables
bash
echo 'export GOROOT=/usr/local/go' >> ~/.bashrc
echo 'export GOPATH=$HOME/go' >> ~/.bashrc
echo 'export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin' >> ~/.bashrc
source ~/.bashrc
linux/ubuntu/how-to-install-go.md
Related articles
- LinuxDocker(Link)[https://docs.docker.com/engine/install/ubuntu/]
- LinuxIdentify Your Network Interface & SubnetLocate Your Netplan Config File
- LinuxRetrieve and Execute the Installation ScriptInstall Node.js and npm Verify the Installation
- LinuxTo change date time of current time zoneTo change date time of current time zone — notes from the Linux collection.