Go Version Manager
To use the command below directly ensure that $HOME/bin is in your PATH.
curl -L https://github.com/devnw/gvm/releases/download/latest/gvm \
> $HOME/bin/gvm && chmod +x $HOME/bin/gvmgvm will automatically detect if there is a newer version available for the
installed gvm tag and give the user the option to update. If the user chooses
to update, the gvm command will be updated to the latest version and re-run
the updated script instead.
To install a released version of Go use the following command.
gvm 1.17.5If this version of Go has been previously installed, the
link will be updated activating that version. If the version
is not installed however gvm will install it, then link it.
gvm supports installing the current development version of Go
To install the current development version of Go use the following command.
gvm nextNOTE: If you have previously installed the development version of Go you must pass the --update flag if you want to
build the latest development version, otherwise it will keep using the previously compiled development version.
gvm creates a directory at $HOME/.gvm and stores all of the Go versions in it. It then creates a symlink to the
currently active version at $HOME/.gvm/go which is then
added to the beginning of the PATH.
- Linux (ARM64 / AMD64)
- Mac OS X (ARM64 / AMD64)
- FreeBSD