udhos / update-golang

update-golang is a script to easily fetch and install new Golang releases with minimum system intrusion
MIT License
1.86k stars 227 forks source link

update to fixed golang version using std parameter #13

Closed CanoeFZH closed 6 years ago

CanoeFZH commented 6 years ago

I have successfully updated my golang version to 1.10.3 using this parameter script

CanoeFZH commented 6 years ago
update.sh: version 0.16
update.sh: user: uid=0(root) gid=0(root) groups=0(root)
update.sh: RELEASE_LIST=https://golang.org/doc/devel/release.html
update.sh: SOURCE=https://storage.googleapis.com/golang
update.sh: DESTINATION=/usr/local
update.sh: RELEASE=1.10.3
update.sh: OS=linux
update.sh: ARCH_PROBE=uname -m
update.sh: ARCH=amd64
update.sh: PROFILED=/etc/profile.d/golang_path.sh
update.sh: CACHE=/usr/local
update.sh: GOPATH=
update.sh: DEBUG=
update.sh: will install golang go1.10.3.linux-amd64 as: /usr/local/go
update.sh: https://storage.googleapis.com/golang/go1.10.3.linux-amd64.tar.gz is remote
--2018-06-19 12:24:44--  https://storage.googleapis.com/golang/go1.10.3.linux-amd64.tar.gz
Resolving storage.googleapis.com (storage.googleapis.com)... 216.58.200.48, 2404:6800:4012::2010
Connecting to storage.googleapis.com (storage.googleapis.com)|216.58.200.48|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 132489256 (126M) [application/octet-stream]
Saving to: ‘/usr/local/go1.10.3.linux-amd64.tar.gz’

/usr/local/go1.10.3.linux-amd64.tar.gz                      100%[=========================================================================================================================================>] 126.35M  2.32MB/s    in 6m 5s   

2018-06-19 12:30:50 (355 KB/s) - ‘/usr/local/go1.10.3.linux-amd64.tar.gz’ saved [132489256/132489256]

update.sh: remove_old_link: not found symlink for old install
update.sh: untar: tar -x -f /usr/local/go1.10.3.linux-amd64.tar.gz
update.sh: path: issuing new /usr/local/go/bin to /etc/profile.d/golang_path.sh
update.sh: path: issuing /home/canoe/go/bin to /etc/profile.d/golang_path.sh
update.sh: golang go1.10.3.linux-amd64 installed at: /usr/local/go
update.sh: testing: /usr/local/go/bin/go version
update.sh: go version go1.10.3 linux/amd64
update.sh: /usr/local/go/bin/go version: SUCCESS
update.sh: testing: /usr/local/go/bin/go run /tmp/hello-tmpgs4oVnMI.go
update.sh: hello, world
update.sh: /usr/local/go/bin/go run /tmp/hello-tmpgs4oVnMI.go: SUCCESS