brew update
Updates your local database of available (and no longer available) installable packages otherwise know in brew terminology as Formulae.
brew upgrade
Updates all the installed packages on your system currently. E.g. Upgrading PHP 5.3.20 to 5.3.21.
brew search 搜尋套件
brew info 查詢套件資訊
brew list 已經裝了哪些套件
brew update 更新 homebrew 自己
brew install 安裝套件
sudo gem update
will update all your gems.
Later, if you want, you can do some 'cleaning'
sudo gem cleanup
what will delete all the previous versions and keep only the latest ones. In case of existing dependencies, you will be prompted before deleting.
brew info 查詢套件資訊
brew list 已經裝了哪些套件
brew update 更新 homebrew 自己
brew install 安裝套件
sudo gem update
will update all your gems.
Later, if you want, you can do some 'cleaning'
sudo gem cleanup
what will delete all the previous versions and keep only the latest ones. In case of existing dependencies, you will be prompted before deleting.