Installing Golang in Ubuntu
1 min read • 18 Apr 2025Views:
Here's how you can install Golang in Ubuntu-
Download golang linux archive from here.
Remove any previous Go installation (if any), and unzip downloaded archive into
/usr/local
directory.
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.24.2.linux-amd64.tar.gz
- Add Golang path in your shell config by adding following line at the end of your
.zshrc
or.bashrc
export PATH=$PATH:/usr/local/go/bin
- Golang is successfully installed on your system, restart your terminal to try it!
