17
8

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.

brew cask search が使えなくなったので brew search を使います

Last updated at Posted at 2019-01-30

はじめに

HomebrewでIntelliJというソフトを検索しようと思って、

brew cask search intellij

とコマンドを叩いたら、こんなエラーがでました。

Homebrew Cask provides a friendly CLI workflow for the administration
of macOS applications distributed as binaries.

Commands:

   audit      verifies installability of Casks
   cat        dump raw source of the given Cask to the standard output
   create     creates the given Cask and opens it in an editor
   doctor     checks for configuration issues
   edit       edits the given Cask
   fetch      downloads remote application files to local cache
   home       opens the homepage of the given Cask
   info       displays information about the given Cask
   install    installs the given Cask
   list       with no args, lists installed Casks; given installed Casks, lists staged files
   outdated   list the outdated installed Casks
   reinstall  reinstalls the given Cask
   style      checks Cask style using RuboCop
   uninstall  uninstalls the given Cask
   upgrade    upgrades all outdated casks
   zap        zaps all files associated with the given Cask

See also "man brew-cask"
Error: help does not take arguments.

ようするに、「そんなコマンド知らないよ」ということみたいです。

原因と解決法

おかしいなと思って調べてみました。どうやら、 brew cask search は2018年9月30日に廃止になったそうです。代わりに brew search を使えばよいそうです。

試しに、

brew search intellij

と入力したら、無事に intellij の情報が表示されました。

参考サイト

調査にあたり、以下のサイトを参考にしました。

最後に

どうやら brew cask --version も同じみたいです。

こちらに情報が書かれていました。

macOS High Sierraでbrew cask --versionしたらCalling brew cask --version is deprecated and will be disabled on 2018-10-31! Use brew --version instead.となったときの対応方法

17
8
1

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
17
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?