Reputation: 63022
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.
Upvotes: 314
Views: 240151
Reputation: 696
!!!!
brew cask
is no longer a brew
command. Use brew <command> --cask
instead.
Example Syntax:-
Use:
brew install --cask <package_name>
Instead of:
brew cask install <package_name>
Upvotes: 0
Reputation: 611
As of 2021 use this command instead:
brew install --cask your-package
Upvotes: 53
Reputation: 1
I had the same issue before. Had my head scratching and finally figured out and use the commands like:
brew commands --cask
This worked for me.
Upvotes: 0
Reputation: 10358
I would recommend following the below steps.
Step 1: Run brew install --help
Might show something like this.
Usage: brew install [options] formula|cask [...]
Install a formula or cask. Additional options specific to a formula may be
appended to the command.
Step 2: follow the hint ot help create the command and execute.
brew install cask chromedriver
Upvotes: 1
Reputation: 1301
Instead of this
brew cask install yourprogram
I have run:
brew install --cask yourprogram
Upvotes: 1
Reputation: 17279
@JeremyJohn answer is out to date, for installing Android
sdk you should use this command:
brew install --cask android-sdk
Upvotes: 6
Reputation: 27568
Since Homebrew 2.6.0 released in 2020.12.01, brew cask
has been deprecated and later dropped.
Homebrew not only manages TUI packages (formulae from the homebrew-core
repo), it's also capable of managing GUI packages (casks from homebrew-cask
repo). In the old days, brew
commands like brew list
, brew outdated
take effect only on formula. Cask operations are separated into brew cask
.
Homebrew has prioritized support for casks since 2.6.0. All the brew
commands take effect on both formulae and casks. You must specify --formula
or --cask
explicitly to indicate them separately.
# Some examples
brew list # both formula and cask
brew list --formula
brew list --cask
brew outdated # both formula and cask
brew outdated --formula
brew outdated --cask
Upvotes: 4
Reputation: 145
With macOS Big Sur , running
brew install ...
will works
Upvotes: 5
Reputation: 185
I don't why the highest voted answer doesn't work for me. But you can do something like brew install homebrew/cask/appName
Upvotes: 4
Reputation: 71
None of these answers—despite some of them being correct at the moment—are showing their work and so may become no longer correct if this changes again.
I ran into this issue, stumbled on this page, and it was enough to get me curious about the change in command line and where that might be documented. Turns out you can go right here:
https://formulae.brew.sh/cask/
and any of those you click on will show you the current command to use. So, for instance, the iterm2 page:
https://formulae.brew.sh/cask/iterm2
right at the top it's got the correct command to use so if they ever change it, you'll see what the new syntax is.
Upvotes: 7
Reputation: 1107
For me,
brew install <program_name>
has worked fine till now.
For example, I was trying to install Oracle Virtual Box and the formula for it was listed as
$ brew cask install virtualbox
.
But, $ brew install virtualbox
worked just fine. I found that it was installing the application as cask as shown in the screenshot.
I think homebrew
automatically takes care of the cask dependency.
Upvotes: 2
Reputation: 878
I had the same issue. Now you should use:
brew install --cask <package>
instead of:
brew cask install <package>
Upvotes: 24
Reputation: 853
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
Upvotes: 30
Reputation: 13821
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
Upvotes: 1305
Reputation: 87
brew tap caskroom/cask
brew install brew-cask
Now, you are ready to brew cask
.
Upvotes: 6
Reputation: 9368
One other thing to check is that it may be installed but not linked:
$ brew install caskroom/cask/brew-cask
Warning: caskroom/cask/brew-cask-0.59.0 already installed, it's just not linked
This is easily fixed by running:
$ brew link brew-cask
Upvotes: 0
Reputation: 10159
You can also just brew install Caskroom/cask/seil
. It will automatically tap the correct cask for you :)
Upvotes: 10