GERBEN'S BLOG

Install Rust and Golang on Linux with a text browser

Here are the commands to quickly install Rust and Golang on a Linux distribution. Code blocks are formatted for easy copy/paste even from lynx or elinks.

1 Install Rust

Rust is installed via its official manager, rustup :

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source "$HOME/.cargo/env"
rustc --version

2 Install Golang amd64

Download and install version 1.26.5:

cd /tmp && curl -LO https://go.dev/dl/go1.26.5.linux-amd64.tar.gz
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go1.26.5.linux-amd64.tar.gz
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.profile && source ~/.profile
go version

3 Install Golang 386 (for old machines)

Download and install version 1.26.5:

cd /tmp && curl -LO https://go.dev/dl/go1.26.5.linux-386.tar.gz
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go1.26.5.linux-386.tar.gz
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.profile && source ~/.profile
go version

Ready to code!

You can now use rustc and go to develop in your two favorite languages.