banner
huqingye

huqingye

Quickly upgrade Go version, only takes 3 minutes (转)

Personal feeling, Go is relatively efficient in all aspects among many advanced languages. The version upgrade process only takes 3 minutes. Come on, guys, let's get started~~~#

Steps#

Prepare the high version Go software package
Deployment
Current Go version

Download Go installation package#

Login to the Go domestic download website,
https://golang.google.cn/dl/
The current computer is a Linux system, download go1.21.5.linux-amd64.tar.gz

Deploy the new Go version#

Find the previous go version storage path, you can use the command whereis go to display the go storage path

Backup the old version#

cd /usr/local
mv go go.1.10.3

Unpack the new version go compressed package in the current directory#

tar -zxf go1.21.5.linux-amd64.tar.gz -C /usr/local/

The go directory will be released under the directory#

ls -l go
Check the go version

changhao@kylinos-v10:~$ go version
go version go1.21.5 linux/amd64

With this, the Go version has been upgraded.#

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.