Mac 若有使用到 Ports、brew 安裝另外的套件,一段時間後會想要升級,升級語法要怎麼下?
Mac Ports、brew 升級語法
Ports Upgrade
- Ports 位置:/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/
- sudo port sync
- sudo port selfupgrade
- port upgrade outdated
Brew Upgrade
- brew update
- brew upgrade
Xcode Upgrade
- sudo xcode-select --install
brew 好像不希望別人用sudo 去update 以及upgrade XD
而且upgrade的指令好像之後要改成 upgrade --all才會做更新!!
是喔,那我先把 sudo 拿掉好了。
現在還是 brew upgrade,還沒有要我加上 --all 說~