To install and setup Golang in Kali Linux, you can use the following steps:
- Download the latest version of Golang from the official website: https://golang.org/dl/
- Extract the downloaded file using the command:
tar -xvf go*
- Move the extracted folder to the desired location, such as
/usr/local/
using the command:mv go /usr/local/
- Add the following lines to your
~/.bashrc
file:
export GOPATH=$HOME/go
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
- Reload the
~/.bashrc
file with the command:source ~/.bashrc
- Verify the installation by running the command:
go version
You should now be able to use Golang on your Kali Linux system.