search
LoginSignup
0
Help us understand the problem. What are the problem?

posted at

Golang 最新版を Amazon Linux2 へインストールする

Golang 最新版はこちら

執筆時点の最新版は 1.18.3 でした

wget https://go.dev/dl/go1.18.3.linux-amd64.tar.gz

ファイルを解凍します

sudo tar -C /usr/local -xzf go1.18.3.linux-amd64.tar.gz

パスを追加します

echo 'export PATH=$PATH:/usr/local/go/bin' >> .bash_profile

確認

source ~/.bash_profile
go version

結果

go version go1.18.3 linux/amd64

Register as a new user and use Qiita more conveniently

  1. You can follow users and tags
  2. you can stock useful information
  3. You can make editorial suggestions for articles
What you can do with signing up
0
Help us understand the problem. What are the problem?