Help us understand the problem. What is going on with this article?

Ubuntuに最新のGolangをインストールする

Ubuntuに最新のGolangをインストールする

備忘録も兼ねて
(Ubuntu14.04 / 16.04 / 18.04 で確認済み)

追記録

2019/10/05 Ubuntu 18.04確認済みの旨追記

1. 公式のパッケージを取得する

https://golang.org/dl/ から、Linux用のtar.gzのURLをコピーする。 (2019/1/28時点では https://dl.google.com/go/go1.11.5.linux-amd64.tar.gz)

$ wget https://dl.google.com/go/go1.11.5.linux-amd64.tar.gz

2. 展開して配置する

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

3. goコマンドのパスを通す

$ export PATH=$PATH:/usr/local/go/bin

4. goコマンド確認

$ ubuntu@hogetan~$ go version
go version go1.11.5 linux/amd64

5. shell再起動

$ exec $SHELL -l

6. 再度goコマンド確認(パスが通っていれば使える)

$ ubuntu@hogetan~$ go version
go version go1.11.5 linux/amd64
notchi
sakura_internet
さくらレンタルサーバ、さくらのVPS、 さくらのクラウド、さくらの専用サーバなどのインターネットサービス・ITプラットフォームを提供しています。
https://www.sakura.ad.jp/
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした