Skip to content

Instantly share code, notes, and snippets.

@ishidur
Last active September 22, 2018 01:32
Show Gist options
  • Save ishidur/f71fc6788b367766de64da60921972c9 to your computer and use it in GitHub Desktop.
Save ishidur/f71fc6788b367766de64da60921972c9 to your computer and use it in GitHub Desktop.
macのパッケージ管理関連のコマンド #package_manager #macos #shell

homebrew

Official site: brew.sh/

TL;DR:

brew update && brew upgrade && brew cleanup

homebrew自体を更新

brew update

homebrewで管理しているパッケージをまとめて更新

brew upgrade

クリーンアップ

brew cleanup

npm

Update grobal packages

npm update -g

RubyGems

TL;DR:

sudo gem update --system && sudo gem update && sudo gem cleanup

RubyGemsそのものを更新

sudo gem update --system

紐付いているライブラリの更新

sudo gem update

クリーンアップ

sudo gem cleanup
@ishidur
Copy link
Author

ishidur commented Aug 18, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment