Kali Linux install Golang

  • by

How to: install golang in Kali Linux

This is actually very simple nowadays, since golang is in the Kali repositories now. So just with just a few commands you can install golang in kali.

# First, install the package
sudo apt install -y golang

# Then add the following to your .bashrc
export GOROOT=/usr/lib/go
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH

# Reload your .bashrc
source .bashrc 

#Thats is, you now have golang installed. To check this you can type:
go version

Leave a Reply

Your email address will not be published. Required fields are marked *