A simple tool to install and update go to its latest version
curl -fsSL https://github.com/earentir/updatego/releases/latest/download/updatego -o updatego && chmod +x updatego
$ ./updatego
Usage: updatego [OPTIONS] COMMAND [arg...]
A simple golang version manager
Options:
-v, --version Show the version and exit
--verbose Enable verbose output
Commands:
install Install Go
status Check Go installation status
latest Print the latest Go version available
update Update Go to the latest version
list List all local Go versions
switch Switch to a specific Go version
Run 'updatego COMMAND --help' for more information on a command.
[root@themis ~]# updatego install
Installing Go version: 1.25.0
Downloading go1.25.0.linux-amd64.tar.gz, writing to: go1.25.0.linux-amd64.tar.gz
URL: https://go.dev/dl/go1.25.0.linux-amd64.tar.gz
Writing to: /tmp/go1.25.0.linux-amd64.tar.gz
####################################################################################################################
Extracting the new Go version...
Switching to the newly installed Go version: 1.25.0
Switched to Go version 1.25.0 successfully.
Setting up environment variables...
GOROOT set to: /usr/local/go
GOPATH set to: /root/go
Contributions are always welcome! All contributions are required to follow the https://google.github.io/styleguide/go/
All code contributed must include its tests in (_test) and have a minimum of 80% coverage
Please report any security vulnerabilities to the project using issues or directly to the owner.
This project follows the go project code of conduct, please refer to https://go.dev/conduct for more details
- Check paths
- Install go
- make changes in bashrc
I will always follow the Linux Kernel License as primary, if you require any other OPEN license please let me know and I will try to accomodate it.