Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 1.04 KB

linux.md

File metadata and controls

37 lines (24 loc) · 1.04 KB

Personal Linux setup instructions

Option 1: Setup instructions for most Linux installations

  1. Run the following commands in terminal:
wget https://dl.google.com/go/go1.17.13.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.17.13.linux-amd64.tar.gz
  1. Open your .bashrc file (~/.bashrc) in your editor of choice. Add the following lines to the bottom of the file:
export GOPATH="$HOME/go"
export PATH="$PATH:/usr/local/go/bin:$GOPATH/bin"
  1. Save the file and exit.

  2. Close and re-open any terminal windows.

  3. Verify your installation with the command go version. The version will be 1.17.13.

Option 2: Setup instructions for Arch Linux

  1. Run the following commands in terminal. If bash is not your default shell, substitute .bashrc for the appropriate file (e.g. .zshrc for zsh).
sudo pacman -S go
echo 'export GOPATH="$HOME/go"' >> ~/.bashrc
echo 'export PATH="$PATH:$GOPATH/bin"' >> ~/.bashrc
source ~/.bashrc
  1. Verify that go version shows a go installation of version >1.13.8.