ubuntu 24 installing golang 1.24
To install golang on ubuntu, you can run the following commands.
Remove any golang installation
sudo rm -rf /usr/local/go
Download golang
wget https://go.dev/dl/go1.24.0.linux-amd64.tar.gz
Extract it to user local
sudo tar -C /usr/local -xzf go1.24.0.linux-amd64.tar.gz
Add golang to the path
export PATH=$PATH:/usr/local/go/bin
source ~/.bashrc
Comments