LoginSignup
3
2

More than 5 years have passed since last update.

brew cask outdatedを用いてoutdatedしたapp共を再インストールする

Last updated at Posted at 2017-04-22

brew cask outdated

下記Pull Requestで brew cask outdated コマンドが追加された。

add command 'cask outdated' by axiac · Pull Request #2309 · Homebrew/brew

このコマンドを用いれば最新バージョンに追従していないapp共が表示される。(何故かstdoutにはバージョンに関する情報が出力されない。)

$ brew cask outdated
mactex (20150613) != 20161009
paw (3.0.6) != 3.0.16,2
postman (4.6.2) != latest
vagrant (1.8.1) != 1.9.3
virtualbox (5.0.20-106931) != 5.1.20-114629
xquartz (2.7.9) != 2.7.11

--quietフラグを用いればappの名前のみ表示される。

$ brew cask outdated --quiet
mactex
paw
postman
vagrant
virtualbox
xquartz

reinstallコマンドと併用して再インストール

これとbrew reinstallコマンドを組み合わせれば下記コマンドでoutdatedしたapp共を再インストールできる。

$ brew cask reinstall $(brew cask outdated --quiet)

備考

mactexのappは2017/04/22現在、筆者の環境ではuninstallに失敗している。

おそらく下記のIssueに関連する問題だと思われる。

Cannot uninstall mactex · Issue #31888 · caskroom/homebrew-cask

参考

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2