LoginSignup
2
3

More than 1 year has passed since last update.

Ubuntuに好きなGoのバージョンをaptでインストールする

Posted at

golang-backportsをapt repositoryに追加する

sudo add-apt-repository ppa:longsleep/golang-backports
sudo apt update

バージョンを指定してgoをインストールする

sudo apt install golang-1.18

設定

~/.profile
GOPATH=~/go
GOROOT=/usr/lib/go-1.18

PATH=$GOROOT/bin:$PATH
2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3