How to install go in Kali Linux

To install and setup Golang in Kali Linux, you can use the following steps:

  1. Download the latest version of Golang from the official website:
  2. Extract the downloaded file using the command: tar -xvf go*
  3. Move the extracted folder to the desired location, such as /usr/local/ using the command: mv go /usr/local/
  4. Add the following lines to your ~/.bashrc file:
export GOPATH=$HOME/go
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
  1. Reload the ~/.bashrc file with the command: source ~/.bashrc
  2. Verify the installation by running the command: go version

You should now be able to use Golang on your Kali Linux system.

Leave a Reply