2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Homebrew Caskでインストール済みのパッケージを全てアップデートするシェルスクリプト

Last updated at Posted at 2015-07-08
$ brew cask update && brew cask list | xargs brew cask install
Already up-to-date.
Warning: A Cask for adobe-reader-ja is already installed. Add the "--force" option to force re-install.
Warning: A Cask for alfred is already installed. Add the "--force" option to force re-install.
Warning: A Cask for atom is already installed. Add the "--force" option to force re-install.
Warning: A Cask for bartender is already installed. Add the "--force" option to force re-install.
Warning: A Cask for bettertouchtool is already installed. Add the "--force" option to force re-install.
Warning: A Cask for betterzipql is already installed. Add the "--force" option to force re-install.
Warning: A Cask for dropbox is already installed. Add the "--force" option to force re-install.
Warning: A Cask for evernote is already installed. Add the "--force" option to force re-install.
Warning: A Cask for google-japanese-ime is already installed. Add the "--force" option to force re-install.
Warning: A Cask for intellij-idea is already installed. Add the "--force" option to force re-install.
Warning: A Cask for iterm2 is already installed. Add the "--force" option to force re-install.
Warning: A Cask for java is already installed. Add the "--force" option to force re-install.
Warning: A Cask for java7 is already installed. Add the "--force" option to force re-install.
Warning: A Cask for karabiner is already installed. Add the "--force" option to force re-install.
Warning: A Cask for mysqlworkbench is already installed. Add the "--force" option to force re-install.

Warningが嫌なら

$ brew cask update 2> /dev/null && brew cask list | xargs brew cask install 2> /dev/null

こんな感じでaliasに登録しています。

$ alias bcu='brew cask update 2> /dev/null && brew cask list | xargs brew cask install 2> /dev/null '
$ bcu

古いバージョンの削除はしないので手動で削除する必要があります。

2
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
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?