Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So, what is the difference between brew and brew cask?

I know that homebrew is a package management software. But what kind of software can I get there? Is it open source software and commercial software?

share|improve this question
up vote 50 down vote accepted

Homebrew

brew is the core command for the Homebrew project.

The missing package manager for OS X

Homebrew installs the stuff you need that Apple didn’t.

Homebrew typically deals with command line software. Most of the software is distributed under an open source licence. See the Formulas for a list of available installs.

Cask

brew cask is an extension to brew that allows management of graphical applications through the Cask project.

Homebrew Cask extends Homebrew and brings its elegance, simplicity, and speed to OS X applications and large binaries alike.

Cask deals with a mixture of software and licences. The software I work on is covered by a commercial licence and available via cask.

Cask offers a way to command line manage the installation of graphical applications.

Licensing

Availability through brew or cask does not imply any specific licence.

share|improve this answer
2  
Ideally duplication between brew and brew cask should be avoided. Graphical applications are suited to brew cask with everything else going through brew. – Graham Miln Oct 27 '14 at 6:52
2  
macvim is available on both. There's even a warning about it in the cask package -- and yet they keep it available. I'm confused why cask exists. – Isaac Nov 18 '14 at 3:39
3  
1  
Reply to issue: "Keep in mind that there are many users that use homebrew-cask but not homebrew. We are different projects with different goals and maintainers, we do not coordinate with each other." – Nick T Jan 12 at 7:27
1  
I am afraid answer from @GrahamMiln is misleading... The key answer is in the linked discussion (#7002): The difference isn’t between binary and app, but between downloaded as source code that will be compiled, or as an already compiled package. The distinction is important because the result is different. brew install macvim takes (possibly way) longer to install then brew cask install macvim. The former provides flexibility, while the later provides speed. – snooze92 Jun 7 at 6:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.