Homebrew cask option not recognized?

206,701

Solution 1

As of 2021, the answer to this question for me was that instead of

brew cask install myprogram

I should run:

brew install --cask myprogram

Solution 2

As of 2021 use this command instead:

brew install cask your-package

Solution 3

UPD: since the command brew install caskroom/cask/brew-cask gives you the following error Error: caskroom/cask was moved. Tap homebrew/cask instead. please run brew install homebrew/cask

To use brew cask you should have it installed, this is a extension of brew, is not native.

To install it you need to run brew install caskroom/cask/brew-cask from your command line

Homebrew Cask Github

Solution 4

I had the same issue. Now you should use:

brew install --cask <package>

instead of:

brew cask install <package>

Solution 5

You can also just brew install Caskroom/cask/seil. It will automatically tap the correct cask for you :)

Share:
206,701

Related videos on Youtube

WestCoastProjects
Author by

WestCoastProjects

R/python/javascript recently and before that Scala/Spark. Machine learning and data pipelines apps.

Updated on July 08, 2022

Comments

  • WestCoastProjects
    WestCoastProjects almost 2 years

    I am following an online resource for installing two Mac utilities

    http://www.economyofeffort.com/2014/08/11/beyond-ctrl-remap-make-that-caps-lock-key-useful/

    Here is the pertinent section:

    Install both Karabiner and Seil. (Here again, if you use Homebrew Cask, you can do this with

    $ brew cask install karabiner and

    $ brew cask install seil

    But the cask option is not recognized?

    06:51:35/shared $brew cask install seil
    Error: Unknown command: cask
    

    Then, just for laughs I tried the command without the cask:

    06:55:01/shared $brew install seil
    Error: No available formula for seil
    Searching formulae...
    Searching taps...
    Caskroom/cask/seil
    

    It is not clear what the last line of output even means: nothing seems to have happened on the system.

    I am on Yosemite.

  • qix
    qix almost 8 years
    brew didn't find the brew-cask formula, but did find brew install homebrew/completions/brew-cask-completion instead. That enabled brew cask for me.
  • Ederson Badeca
    Ederson Badeca over 3 years
    I was trying to use it but I think you don't need to pass cask anymore. I just hit: brew install spotify It worked for me.
  • Rollsbean
    Rollsbean over 3 years
    caskroom/cask was moved, i need to use homebrew/cask instead. brew install caskroom/cask/brew-cask Error: caskroom/cask was moved. Tap homebrew/cask instead.
  • cheesydoritosandkale
    cheesydoritosandkale over 3 years
    I had the same issue @KDFinal I finally got it to work by changing the way I reference the file I was wanting to install to: "brew install --cask homebrew/cask-versions/adoptopenjdk8"
  • CrashNeb
    CrashNeb over 3 years
    Found link in homebrew's Github discussion with explanation of behavior change: github.com/Homebrew/discussions/discussions/…
  • Daniel Delgado
    Daniel Delgado over 3 years
    "All brew cask commands have been deprecated in favour of brew commands (with --cask) when necessary" read on brew.sh/2020/12/01/homebrew-2.6.0
  • IgorGanapolsky
    IgorGanapolsky about 3 years
    Error: caskroom/cask was moved. Tap homebrew/cask instead.
  • IgorGanapolsky
    IgorGanapolsky about 3 years
    Why do I get this error: fatal: ambiguous argument 'refs/remotes/origin/master': unknown revision or path not in the working tree.
  • Sacha Guyer
    Sacha Guyer about 3 years
    Thanks for this answer. You are right with your examples. Also, if you go to brew.sh, in the cask section, it lists the "new" command $ brew install --cask firefox, while earlier, the format of the command was e.g. brew cask install skype. Apparently this was changed in 2.6.0. The blog/release notes brew.sh/2020/12/01/homebrew-2.6.0 mention: "All brew cask commands have been deprecated in favour of brew commands (with --cask) when necessary", I did not find further details why they made this change though.
  • Kohls
    Kohls about 3 years
    cask was warned that would be obsolete and removed in future brew versions, and should be replaced by --cask
  • Berlian
    Berlian about 3 years
    the homebrew/cask is worked on me, but it still get error after I ran cask
  • Stephen Ó Connor
    Stephen Ó Connor over 2 years
    nice brew install --cask font-fira-code
  • WestCoastProjects
    WestCoastProjects over 2 years
    duplicate of answer from @DolDurma
  • Karan
    Karan over 2 years
    worked like charm :D
  • Codeversed
    Codeversed over 2 years
    Finally, Thank you!
  • mpowrie
    mpowrie over 2 years
    @Ederson-Badeca I still needed cask to install docker for desktop. brew install --cask docker
  • Dr.jacky
    Dr.jacky over 2 years
    No available formula or cask with the name "caskroom/cask/seil". ==> Searching for similarly named formulae... Error: No similarly named formulae found.
  • Steve Tauber
    Steve Tauber over 2 years
    This particular package has been obsoleted github.com/tekezo/Seil
  • Valiant
    Valiant over 2 years
    brew install cask your-package worked for me instead
  • Daniel Compton
    Daniel Compton over 2 years
    This is not correct, this will install the packages cask and your-package. See stackoverflow.com/a/66081492/826486 for the correct answer.
  • Nick the Community Scientist
    Nick the Community Scientist over 2 years
    Unless there are conflicting cask and formulae names (check handbrake as an example using brew search handbrake) then the standard format of brew install nameOfYourProgram should work. Alternatively, you should be using the --cask flag according to brew install -h which reports '--cask' and not 'cask'.
  • Nick the Community Scientist
    Nick the Community Scientist over 2 years
    As I commented in the answer by @Jeremy John above, this is correct.
  • Rom's
    Rom's over 2 years
    it's correct for me too on MacOS M1 2021
  • Admin
    Admin about 2 years
    Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.