Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/filipe-freire/linux-update-go-script
Bash script that updates Go on linux. Because who said Linux users can't have nice things?
https://github.com/filipe-freire/linux-update-go-script
go golang linux
Last synced: 28 days ago
JSON representation
Bash script that updates Go on linux. Because who said Linux users can't have nice things?
- Host: GitHub
- URL: https://github.com/filipe-freire/linux-update-go-script
- Owner: filipe-freire
- Created: 2022-10-22T09:10:42.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-22T09:14:11.000Z (about 2 years ago)
- Last Synced: 2024-08-03T23:28:58.203Z (4 months ago)
- Topics: go, golang, linux
- Homepage:
- Size: 1.95 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-golang-repositories - linux-update-go-script
README
# Linux Go Install/Update Script
A custom bash script that installs/updates your Go version on linux. Because shipping a language with a command that updates itself is way too mainstream.
## Pre-Script Steps
**If it's your first time installing go:**
1. Add /usr/local/go/bin to the PATH environment variable.
You can do this by adding the following line to your `$HOME/.profile` or `/etc/profile` (for a system-wide installation):
`export PATH=$PATH:/usr/local/go/bin`
_Note: Changes made to a profile file may not apply until the next time you log into your computer. To apply the changes immediately, just run the shell commands directly or execute them from the profile using a command such as source $HOME/.profile._
**If you're updating from a previous version:**
1. Check that Go has been updated by running the following command:
```bash
go version
```## Running the script
```bash
sh ./update-go
```## Official Docs
For the official docs on how to install/update Go, please refer to