Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to upgrade go from 1.4 to 1.5 via homebrew

Tags:

homebrew

go

I try brew upgrade go

it always show:

go 1.4.1 already installed

how can i upgrade go to 1.5?

like image 817
jianfeng Avatar asked Jan 04 '16 09:01

jianfeng


2 Answers

You should run brew update first, then run brew upgrade to upgrade all software installed by brew. Also you can run brew upgrade go to upgrade go only.

like image 131
Sirui Zhuang Avatar answered Oct 24 '22 05:10

Sirui Zhuang


Try running

brew update
brew upgrade

brew install go --cross-compile-common

brew upgrade might upgrade go alone without having to try to install it, after you run brew update/upgrade try running go version and see which version you have.

like image 45
Datsik Avatar answered Oct 24 '22 07:10

Datsik