How to Install Golang on WSL/WSL2 Mrityunjaya Prajapati on June 13, 2022 One of the best feature that Windows 10 or 11 Pro support is WSL or WSL2, using this you can run any Linux OS like a windows application. If you w... Read full post Submit Preview Dismiss Collapse Expand Jorgen Ordonez Jorgen Ordonez Jorgen Ordonez Follow Joined Jul 22, 2021 • Nov 23 '22 Dropdown menu Copy link Hide Thanks this helped. I had some minor differences in steps I took, which I will list below: I use zsh so I edited .zshrc instead Then after I reload the rc file using source ~/.zshrc instead of spawning a new shell. Collapse Expand Luiz Henrique F Salmonson Luiz Henrique F Salmonson Luiz Henrique F Salmonson Follow Data science, engineering, backend and gaming enthusiast. Thank you for the articles, posts and comments. Joined Oct 20, 2023 • Oct 20 '23 Dropdown menu Copy link Hide Thank you. Update for current version and zsh user commands: wget https://dl.google.com/go/go1.21.3.linux-amd64.tar.gz sudo tar -xvf go1.21.3.linux-amd64.tar.gz sudo mv go /usr/local echo "export GOROOT=/usr/local/go" >> ~/.zshrc echo "export GOPATH=\$HOME/go" >> ~/.zshrc echo "export PATH=\$GOPATH/bin:\$GOROOT/bin:\$PATH" >> ~/.zshrc source ~/.zshrc Collapse Expand D.aȠ D.aȠ D.aȠ Follow Selling tickets to my downfall. Joined May 6, 2023 • May 6 '23 Dropdown menu Copy link Hide The same for me! Collapse Expand Olaleye Obidiya Olaleye Obidiya Olaleye Obidiya Follow A software engineer with chess skills, wonderful combination. Joined Jun 30, 2024 • Aug 14 '24 Dropdown menu Copy link Hide Thanks, this works for bashrc also. wget https://dl.google.com/go/go1.23.0.linux-amd64.tar.gz sudo tar -xvf go1.23.0.linux-amd64.tar.gz sudo mv go /usr/local echo "export GOROOT=/usr/local/go" >> ~/.bashrc echo "export GOPATH=\$HOME/go" >> ~/.bashrc echo "export PATH=\$GOPATH/bin:\$GOROOT/bin:\$PATH" >> ~/.bashrc source ~/.bashrc Enter fullscreen mode Exit fullscreen mode Collapse Expand LouieMartin LouieMartin LouieMartin Follow I'm a fullstack developer. Location Philippines 🇵🇭 Joined Dec 30, 2022 • Feb 26 '23 Dropdown menu Copy link Hide You can use nano .bashrc instead of File Explorer. Collapse Expand Justin Justin Justin Follow 🐹 Love C-like languages, hypertext and powerful divs Joined Aug 14, 2021 • Jul 2 '22 Dropdown menu Copy link Hide Thanks for this, worked perfectly 👌 You can also use $ code ~/.bashrc instead of explorer.exe . Collapse Expand Parmar Ujjaval Parmar Ujjaval Parmar Ujjaval Follow Location Ahmedabad, India Joined Feb 13, 2024 • Feb 15 '24 Dropdown menu Copy link Hide even simpler use neovim or vi or vim Collapse Expand Nathan Kurz Nathan Kurz Nathan Kurz Follow Software Engineer @ AT&T Location Atlanta, GA Education B.S. in C.S. @ Kennesaw State University Work Software Engineer Joined Apr 29, 2020 • Sep 27 '24 Dropdown menu Copy link Hide Hell yeah! Nice and easy, thanks! Collapse Expand Chia Yong Kang Chia Yong Kang Chia Yong Kang Follow Joined Oct 19, 2020 • Jul 26 '22 Dropdown menu Copy link Hide workedp amazing Collapse Expand Andrew Ross Andrew Ross Andrew Ross Follow TypeScript is 💙 Email andrew@windycitydevs.io Location Chicago, IL USA Education BS Anthro, BA Biochem, Chem Minor, Full-Stack Cert Work JAMStack Development Lead Joined Apr 24, 2020 • Oct 7 '22 Dropdown menu Copy link Hide Perfect, thanks man Collapse Expand FRicardi FRicardi FRicardi Follow Curious web dev, looking forward to learn more and engage on a dev community Education UNISINOS - Information Science Joined Nov 25, 2021 • Sep 30 '23 Dropdown menu Copy link Hide Just used it - worked great. Thanks! Collapse Expand Nurudeen Rabiu Alabi Nurudeen Rabiu Alabi Nurudeen Rabiu Alabi Follow I am a backend web developer, quite proficient in Node js and Express in Rest APIs development. Education Obafemi Awolowo University, Ile-Ife Bsc Electronic and Electrical Engineering Work Backend developer, Brannium Technologies Joined Aug 9, 2022 • Jul 20 '24 Dropdown menu Copy link Hide very helpful, thanks Collapse Expand Mogueno Mogueno Mogueno Follow Trying to be the next Tony Stark Email buguinha29@gmail.com Location Atibaia, São Paulo Work Software Engineer at ACCT Joined Mar 23, 2021 • Aug 27 '24 Dropdown menu Copy link Hide Be sure to always go to go.dev/dl/ to check the latest go version when downloading the .tar.gz! Collapse Expand Stephen Brodigan Stephen Brodigan Stephen Brodigan Follow Joined May 10, 2024 • May 10 '24 Dropdown menu Copy link Hide What an absolutely perfect solution to install Go, thank you! Collapse Expand Praveen Sharma Praveen Sharma Praveen Sharma Follow Joined Sep 25, 2024 • Sep 25 '24 Dropdown menu Copy link Hide Created an acc on this site , Just to say you thank you Thank You , My Friend Collapse Expand Robert Petz Robert Petz Robert Petz Follow I'm a golang developer focused in waveforms and artificial intelligence Joined Aug 17, 2024 • Aug 17 '24 Dropdown menu Copy link Hide Thank you - this actually worked for me! Straight to the point and effective Collapse Expand Maureen Ononiwu Maureen Ononiwu Maureen Ononiwu Follow Back-end and DevOps engineer with approximately 2 years of experience learning and mastering technologies, working independently as well as with teams building software solutions Location Nigeria Joined Dec 8, 2020 • Aug 7 '23 Dropdown menu Copy link Hide Thank you so so so much!! Collapse Expand D.aȠ D.aȠ D.aȠ Follow Selling tickets to my downfall. Joined May 6, 2023 • May 6 '23 Dropdown menu Copy link Hide Thanks! Almost everything works fine! Collapse Expand Justin Morales Justin Morales Justin Morales Follow Full Stack Engineer with expertise in JavaScript, Go, Python, and cloud tech. Skilled in scalable web apps, microservices, and Agile practices. Education Middle Tennessee State University Pronouns He Work UNHCR Joined May 26, 2025 • May 27 '25 Dropdown menu Copy link Hide Good deal Can We connect to discuss? I'm interested in exploring a potential business collaboration with you, as I believe our combined efforts could be mutually beneficial. Please let me know if you'd be open to discussing this further. Collapse Expand Lev Pa Lev Pa Lev Pa Follow I live in the foothills of the Carpathians, you can always come and ski or relax in the vats. Email lev.pa@levarc.com Location Uzhhorod, Ukraine Education Masters degree Pronouns He/His Work Founder at LevArc Joined Oct 23, 2020 • Nov 10 '24 Dropdown menu Copy link Hide not immutable, prone to errors... Code of Conduct • Report abuse
Thanks this helped. I had some minor differences in steps I took, which I will list below:
.zshrcinsteadsource ~/.zshrcinstead of spawning a new shell.Thank you. Update for current version and zsh user commands:
wget https://dl.google.com/go/go1.21.3.linux-amd64.tar.gzsudo tar -xvf go1.21.3.linux-amd64.tar.gz
sudo mv go /usr/local
echo "export GOROOT=/usr/local/go" >> ~/.zshrc
echo "export GOPATH=\$HOME/go" >> ~/.zshrc
echo "export PATH=\$GOPATH/bin:\$GOROOT/bin:\$PATH" >> ~/.zshrc
source ~/.zshrc
The same for me!
Thanks, this works for bashrc also.
You can use
nano .bashrcinstead of File Explorer.Thanks for this, worked perfectly 👌
You can also use $ code ~/.bashrc instead of explorer.exe .
even simpler use neovim or vi or vim
Hell yeah! Nice and easy, thanks!
workedp amazing
Perfect, thanks man
Just used it - worked great. Thanks!
very helpful, thanks
Be sure to always go to go.dev/dl/ to check the latest go version when downloading the
.tar.gz!What an absolutely perfect solution to install Go, thank you!
Created an acc on this site , Just to say you thank you
Thank You , My Friend
Thank you - this actually worked for me!
Straight to the point and effective
Thank you so so so much!!
Thanks! Almost everything works fine!
Good deal
Can We connect to discuss?
I'm interested in exploring a potential business collaboration with you, as I believe our combined efforts could be mutually beneficial.
Please let me know if you'd be open to discussing this further.
not immutable, prone to errors...