brew 和 caskbrew 区别:
brew主要用来下载一些不带的命令行下的工具和第三方库来进行二次开发
brew cask主要用来下载一些带界面的应用软件,下载好后会自动安装,并能在mac中直接运行使用
brew 是从下载源码解压然后./configure && make install,同时会包含相关依存库。并自动配置
好各种环境变量,而且易于卸载。
而brew cask是已经编译好了的应用包(.dmg/.pkg).
仅仅是下载解压,放在统一的目录中(/opt/homebrew-cask/Caskroom),
省掉了自己去下载、解压、拖拽(安装)等蛋疼的步骤,同样,卸载相当容易与干净。
homebrew
安装
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
命令
安装软件:brew install 软件名,例:brew install wget
搜索软件:brew search 软件名,例:brew search wget
卸载软件:brew uninstall 软件名,例:brew uninstall wget
更新所有软件:brew update
更新具体软件:brew upgrade 软件名 ,例:brew upgrade git
显示已安装软件:brew list
查看软件信息:brew info/home 软件名 ,例:brew info git / brew home git
显示包依赖:brew reps
显示安装的服务:brew services list
安装服务启动、停止、重启:brew services start/stop/restart serverName
homebrew cask
安装
brew tap phinze/homebrew-cask
brew install brew-cask
软件列表
可视化homebrew安装工具
brew cask install cakebrew
图形化管理Homebrew安装的服务软件
brew tap jimbojsb/launchrocket
brew cask install launchrocket
全局搜索工具
brew cask install alfred
//快捷键option+space
//command+回车打开文件所在文件夹
//把/usr/local/Caskroom增加到 alfred 的search目录中,偏好设置->Features->Default Results->Search Scope
//百度搜索添加设置
1.Features->Web Search->Add Custom Search
2.Search Url->https://www.baidu.com/s?wd={query}
Title->Search Baidu for '{query}'
Keywords->baidu
Validation:alfredpp
//国人必备的30个Alfred Workflow
https://www.waerfa.com/alfred-workflow
brew cask install google-chrome
//chrome://components
终端工具
brew cask install iterm2
//配色https://github.com/mbadolato/iTerm2-Color-Schemes
mac chm阅读工具
brew cask install ichm
shadowsocks客户端
brew cask install shadowsocksx-ng
redis客户端
brew cask install rdm
brew install macvim --with-override-system-vim
brew install emacs --with-cocoa --with-gnutls
brew install adminer
mac环境工具
brew install mysql
brew install httpd24
brew install php56 --with-httpd24
brew install redis
brew install php56-redis
//redis可视化管理工具 redis-desktop-manager
brew install php56-yaf
brew install php56-swoole
brew install mongodb
brew install php56-mongodb
brew install nginx
brew install memcached
brew install php56-memcached
//mongodb可视化管理工具 robomongo
虚拟机
brew cask install virtualbox
brew cask install vagrant
前端工具
brew install node
网友评论