DEV Community

Ankit Kumar
Ankit Kumar

Posted on

Go Version manager | GVM

There are several go version manager available out of which i found out GVM to be more reliable.

Go Version Manager (gvm)

Mac OS X Requirements

xcode-select --install
brew update
brew install mercurial

To install:

bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)

GVM installation demo by 0xankit

Note: If you are using zsh just change bash with zsh
Note: Then you need to add gvm to env PATH

And To install new go version:
gvm install go1.18.3
gvm use go1.18.3 [--default]
gvm list

GVM in action demo by 0xankit

  • gvm install go1.18.3 -B directly installs the binary!

  • gvm list lists all installed go versions

  • gvm listall lists all released go versions

To uninstall:

To completely remove gvm and all installed Go versions and packages:

gvm implode

Checkout out official GVM repo for more here.

Top comments (0)

Some comments may only be visible to logged-in visitors. Sign in to view all comments.