gvm #
安装:
zsh < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
使用:
$ gvm listall
$ gvm list
apt-get install bison make gcc -y
# 使用二进制安装
gvm install go1.15.15 -B
gvm install go1.16.15 -B
gvm install go1.17.13 -B
gvm install go1.18.9 -B
gvm install go1.19.4 -B
$ gvm use go1.15
$ gvm uninstall go1.15
# 使用二进制安装
$ gvm install go1.15 -B
$ gvm install -h
Invalid version: -h
Usage: gvm install [version] [options]
-s, --source=SOURCE Install Go from specified source.
-n, --name=NAME Override the default name for this version.
-pb, --with-protobuf Install Go protocol buffers.
-b, --with-build-tools Install package build tools.
-B, --binary Only install from binary.
--prefer-binary Attempt a binary install, falling back to source.
-h, --help Display this message.
$ gvm help
Usage: gvm [command]
Description:
GVM is the Go Version Manager
Commands:
version - print the gvm version number
get - gets the latest code (for debugging)
use - select a go version to use (--default to set permanently)
diff - view changes to Go root
help - display this usage text
implode - completely remove gvm
install - install go versions
uninstall - uninstall go versions
cross - install go cross compilers
linkthis - link this directory into GOPATH
list - list installed go versions
listall - list available versions
alias - manage go version aliases
pkgset - manage go packages sets
pkgenv - edit the environment for a package set
叶王 © 2013-2024 版权所有。如果本文档对你有所帮助,可以请作者喝饮料。