“ brew”和“ brew cask”有什么区别?


295

那么,brew和之间有什么区别brew cask

我知道自制软件是一个软件包管理软件。但是我可以使用哪种软件呢?它是开源软件还是商业软件?

Answers:


251

家酿

brewHomebrew项目的核心命令。

OS X缺少的包管理器

自制软件会安装Apple不需要的东西。

自制软件通常处理命令行软件。大多数软件是在开放源代码许可下分发的。请参阅“ 公式”以获取可用安装列表。

brew 首选预编译的二进制文件,但在某些情况下会从源代码进行编译。

木桶

brew cask是对的扩展,brew它允许通过Cask项目管理图形应用程序。

Homebrew Cask扩展了Homebrew,并为OS X应用程序和大型二进制文件带来了它的优雅,简单和快速。

木桶涉及软件和许可证的混合。我使用的软件已获得商业许可证的保护,可以通过cask获得

Cask提供了一种命令行管理图形应用程序安装的方法。

有关项目对可预测性的关注及其对预编译二进制文件或源代码使用的影响,请参见brew cask问题7002

发牌

通过brewcask不暗示任何特定许可的可用性。


14

brew cask install foo似乎是brew install caskroom/cask/foo

ct@MBA45:~$ brew tap
caskroom/cask
homebrew/core
homebrew/php
ct@MBA45:~$ brew install meld
Error: No available formula with the name "meld" 
It was migrated from homebrew/core to caskroom/cask.
You can access it again by running:
  brew tap caskroom/cask
ct@MBA45:~$ brew tap caskroom/cask
ct@MBA45:~$ brew install meld
Error: No available formula with the name "meld" 
It was migrated from homebrew/core to caskroom/cask.
You can access it again by running:
  brew tap caskroom/cask
ct@MBA45:~$ brew install caskroom/cask/meld
==> brew cask install caskroom/cask/meld 
==> Satisfying dependencies
==> Downloading https://github.com/yousseb/meld/releases/download/osx-9/meldmerge.dmg
######################################################################## 100,0%
==> Verifying checksum for Cask meld
==> Installing Cask meld
==> Moving App 'Meld.app' to '/Applications/Meld.app'.
==> Linking Binary 'Meld' to '/usr/local/bin/meld'.
🍺  meld was successfully installed!
ct@MBA45:~$ brew cask install meld
Warning: Cask 'meld' is already installed.

To re-install meld, run:
  brew cask reinstall meld
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.