Difference between revisions of "Go install"
Jump to navigation
Jump to search
(Created page with "``` sudo snap install --classic go ```") |
|||
Line 1: | Line 1: | ||
+ | |||
+ | https://golang.org/doc/install | ||
+ | ``` | ||
+ | sudo apt remove -y golang-go | ||
+ | curl -LO https://golang.org/dl/go1.16.6.linux-amd64.tar.gz | ||
+ | sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.16.6.linux-amd64.tar.gz | ||
+ | echo "export PATH=$PATH:/usr/local/go/bin" >> ~/.bashrc | ||
+ | . ~/.bashrc | ||
+ | ``` | ||
+ | |||
+ | Snap | ||
``` | ``` | ||
sudo snap install --classic go | sudo snap install --classic go | ||
+ | ``` | ||
+ | |||
+ | Apt | ||
+ | ``` | ||
+ | sudo apt install -y golang-go | ||
``` | ``` |
Revision as of 18:12, 3 August 2021
https://golang.org/doc/install
sudo apt remove -y golang-go curl -LO https://golang.org/dl/go1.16.6.linux-amd64.tar.gz sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.16.6.linux-amd64.tar.gz echo "export PATH=$PATH:/usr/local/go/bin" >> ~/.bashrc . ~/.bashrc
Snap
sudo snap install --classic go
Apt
sudo apt install -y golang-go