2019独角兽企业重金招聘Python工程师标准>>>

Homebrew 与 Homebrew-Cask 的关系

  • Remember that Homebrew-Cask is an independent project from Homebrew.
  • Homebrew-Cask is implemented as a subcommand of Homebrew.

Homebrew-Cask 介绍(官方主页):

“To install, drag this icon…” no more!

Homebrew-Cask extends Homebrew and brings its elegance, simplicity, and speed to the installation and management of GUI macOS applications such as Google Chrome and Adium.

We do this by providing a friendly Homebrew-style CLI workflow for the administration of macOS applications distributed as binaries.

It’s implemented as a homebrew external command called cask.

To start using Homebrew-Cask, you just need Homebrew installed.

As of December 2015, it is now unnecessary to install cask manually as it is now part of homebrew's installation. So after updating homebrew via brew update, you are set to use brew cask.

Homebrew 介绍(官方主页):

The missing package manager for macOS.

知乎上关于这个问题的讨论:这里。 网友提供的很好的介绍:这里。

Homebrew 相关术语

Term Description Example
Formula package 定义文件 /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/foo.rb
Keg The installation prefix of a Formula(可理解成版本号) /usr/local/Cellar/foo/0.1
opt prefix A symlink to the active version of a Keg /usr/local/opt/foo
Cellar All Kegs are installed here /usr/local/Cellar
Tap 存放 Formulae 和/或 commands 的其它可选 Git 仓库 /usr/local/Homebrew/Library/Taps/homebrew/homebrew-versions
Bottle 用于替代源码构建而预先构建好的 Keg qt-4.8.4.mavericks.bottle.tar.gz
Cask 用于安装 macOS native apps 的 homebrew 扩展 /Applications/MacDown.app/Contents/SharedSupport/bin/macdown
Brew Bundle 用于描述依赖关系的 homebrew 扩展 brew 'myservice', restart_service: true

提 bug 前的确认工作

在你认为遇到 bug 但找不到解决办法前 make sure you have the latest versions of Homebrew, Homebrew-Cask, and all Taps by running the following commands.

$ cd $(brew --repo); git fetch; git reset --hard origin/master
$ brew untap phinze/cask; brew untap caskroom/cask; brew uninstall --force brew-cask
$ brew cleanup; brew cask cleanup; brew update

补充说明:

$ cd $(brew --repo); git fetch; git reset --hard origin/master`

If Homebrew was updated on Aug 10-11th 2016 and brew update always says Already up-to-date. you need to run these commands above.

brew uninstall --force brew-cask

To uninstall all versions of a Cask, use --force

$ brew cleanup; brew cask cleanup; brew update

cleanup — cleans up cached downloads


提 issue 的套路

Start by searching for your issue before posting a new one. If you find an open issue and have any new information not reported in the original, please add your insights. If you find a closed issue, try the solutions there. If the issue is still not solved, open a new one with your new information and a link back to the old related issue.

转载于:https://my.oschina.net/moooofly/blog/798103

【原创】brew 和 brew cask相关推荐

  1. Mac的brew和brew cask区别以及安装brew cask

    brew多用于命令行. brew cask主要用于有GUI的软件,例如VLC等等. brew cask是brew的一个子集,也就是一个扩展. 安装brew cask扩展: ruby -e " ...

  2. Mac的brew和brew cask区别

    brew多用于命令行. brew cask主要用于安装有GUI图形界面的软件,例如VLC,qt-creator等等. brew cask是brew的一个子集,也就是一个扩展

  3. mac brew和brew cask的区别

    brew 是从下载源码解压然后./configure && make install,同时会包含相关依存库.并自动配置 好各种环境变量,而且易于卸载. 而brew cask是已经编译好 ...

  4. brew与brew cask

    笔者机器上只有homebrew,没有试过homebrew cask.两者都可以用于安装一些mac软件,但主要区别在于安装的方式(一个下载编译,一个直接下载编译好的软件),支持的软件也不太一样. 参考: ...

  5. M1芯片Mac安装brew和brew常用命令(附:安装docker)

    小提示:mac终端常用命令(需要root权限前面加sudo) mac终端安装brew: /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/ ...

  6. Mac 一键解决 一键安装brew -bash: brew: command not found

    安装: /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" ...

  7. brew卸载jenv_使用brew,cask和jenv在MacOSX上设置多个Java JRE / JDK

    brew卸载jenv 昨天在Java9的Jigsaw HackTheTower事件中,我意识到我需要加强我的游戏并改善我现有的机制,以在我的机器上维护几个不同的JDK. 我曾经手动下载jdk,或使用b ...

  8. 使用brew,cask和jenv在MacOSX上设置多个Java JRE / JDK

    昨天在Java9的Jigsaw HackTheTower事件中,我意识到我需要加强我的游戏并改善我现有的机制,以在我的机器上维护几个不同的JDK. 我曾经手动下载jdk,或使用brew cask安装它 ...

  9. brew | brew cask | yum | apt-get

    博客引流 用过Mac的肯定 或多或少的 用过 brew这个命令 在我之前的印象里 这个命令就好像 Ubuntu里的apt-get Centos里的yum 都是属于那种Linux下包管理器 那他们之间有 ...

最新文章

  1. 索引扫描、查找、书签查询、覆盖查询示例介绍
  2. java curator_[java,zk]在 linux 上快速搭建 zookeeper curator 开发环境
  3. nginx php页面打开404,nginx php页面 error_page 404不起作用解决
  4. 【OO学习】OO第四单元作业总结及OO课程总结
  5. 负载均衡SLB新功能介绍
  6. 十五、java的基本数据类型
  7. 类与对象- 课后作业1
  8. ES6新特性:Javascript中Generator(生成器)
  9. 【第24章】工控安全需求分析与安全保护工程(软考:信息安全工程师)-- 学习笔记
  10. VS2012 下载地址
  11. dnf时装补丁教程_【时装补丁制作】消灭伸手党!最详细的图文教程~
  12. 从零学IOS开发(一)
  13. java公路车的气嘴,5分钟了解自行车常见的三种气嘴
  14. 性能测试方法及基本流程
  15. 记录今天用ETL工具KETTLE遇到打不开job问题
  16. flyingsaucer转换多个html,如何在将PDF转换为HTML的同时在Flying-Saucer中设置基本URL?...
  17. mac查找字符串并替换
  18. 安卓 APP更新的两种途径
  19. 1.认识童心派 — 电子胸牌
  20. java时间戳转换日期格式_Java时间戳与日期格式字符串的互转

热门文章

  1. mysql建立外键案例_MySQL外键实例
  2. oracle排序字符,Oracle数据字符集和排序的用法
  3. java二进制 中文_Java 实现中文与二进制代码互转
  4. sqlserver中某列转成以逗号连接的字符串及逆转、数据行转列列转行
  5. ie8升级到ie11 操作系统不受支持
  6. 网页在兼容模式和急速模式下前者报错、后者正常的原因查找
  7. clickhouse 的mysql表引擎
  8. 冯诺依曼结构和哈佛结构02
  9. vb中line的用法[转]
  10. 上车,在北京地铁10号线偶遇一下