Homebrew-cask 命令行安装Mac软件

homebrew-cask简介

cask是基于homebrew的扩展命令,直接通过命令行去安装Mac的各种软件。免去之前通过下载链接下载DMG文件,然后拖动到Applitions目录,这种手动的安装方法。如果配置一部新的Mac机器,主要安装了cask,通过一个脚本就安装把用到软件一一安装上去,可以节约很多时间。

homebrew-cask依赖

“Command Line Tools” –> homebrew –> homebrew-cask 上面是cask的依赖关系。

1. “Command Line Tools” 安装方法

http://railsapps.github.io/images/installing-mavericks-popup.png

2. homebrew 安装方法
1
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

homebrew-cask安装

homebrew-cask 安装方法
1
2
3
brew tap phinze/cask
brew install brew-cask
brew cask install google-chrome

cask帮助

输入下面的命令就可以查看cask的常用命令: checklinks,doctor,search,list,info,alfred,audit,edit,install,uninstall,create,home

1
brew cask

常用的软件的cask

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
brew cask install adobe-air
brew cask install alfred
brew cask install aliwangwang
brew cask install appcleaner
brew cask install dbeaver
brew cask install dropbox
brew cask install emacs
brew cask install evernote
brew cask install filezilla
brew cask install firefox
brew cask install genymotion
brew cask install github
brew cask install gitx-l
brew cask install google-chrome
brew cask install intellij-idea-ultimate
brew cask install iterm2
brew cask install itools
brew cask install light-table
brew cask install line
brew cask install maxthon
brew cask install mou
brew cask install movist-fork
brew cask install pycharm-pro
brew cask install qq
brew cask install skitch
brew cask install skype
brew cask install spectacle
brew cask install sublime-text
brew cask install the-unarchiver
brew cask install thunder
brew cask install virtualbox
brew cask install vlc
brew cask install vox

原文地址: http://www.cngump.com/blog/2014/02/15/homebrew-cask/