cd /tmp
# https://go.dev/dl/
wget https://go.dev/dl/go1.22.5.linux-arm64.tar.gz
tar -xvf go*.linux-arm64.tar.gz -C /usr/local
rm go*.linux-arm64.tar.gz
mkdir ~/go
echo "export GOPATH=$HOME/go" >> ~/.profile
echo "export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin" >> ~/.profile
source ~/.profile
go version
Comments
Post a Comment
Keep it clean and professional...