Reputation: 1503
If I install a node package globally with npm i -g aoeu
, I can update this package by running npm update -g aoeu
, and I can update all my globally installed packages by running npm update -g
.
Now, if I install a Go package to my $GOPATH/bin
with go install GitHub.com/aoeu@latest
, how can I update all these globally installed packages?
Upvotes: 2
Views: 1082
Reputation: 134
You can list and automatically upgrade all go bin packages to the latest versions using
Installation
go install github.com/Gelio/go-global-update@latest
Run: This updates globally installed go binaries automatically
go-global-update
https://github.com/Gelio/go-global-update
Upvotes: 0
Reputation: 79734
Now, if I install a Go package to my $GOPATH/bin with go install GitHub.com/aoeu@latest, how can I update all these globally installed packages?
You can't, except to update each one individually. There's no mechanism for this in Go. The files in this directory are not tracked in any way.
Upvotes: 3