Brew is the package management tool under Mac, and it's easy to install development tools by using Github to host your Mac-friendly compilation configuration and patches. Mac comes with Ruby so it's easy to install, and it automatically installs git as well. Official website: http://brew.sh.
After the installation is complete, it is recommended to perform a self-test
brew doctor。 if you see your system is a ready-to-brew. Then your brew will be ready for use.
Install: Open terminal, enter the following command
Ruby-e "$ (curl-fssl https://raw.github.com/mxcl/homebrew/go/install)"
2. Use Brew to install software
A command to fix, like installing Git
3. Use Brew to uninstall the software
Brew Uninstall Git
4. Use brew query software
Brew search/wge*/ //
5, Common command: (all software with PHP5.5 as an example)
Brew Update #更新brew可安装包, it is recommended to perform a 2 brew search Php55 #搜索php5 each time . 5 3 Brew Tap josegonzalez/php #安装扩展 <gihhub_ user/repo> Brew tap #查看安装的扩展列表 5 Brew Install Php55 #安装php5.5 6 Brew Remove php55 # Uninstall php5.5 7 Brew upgrade Php55 brew options Php55 Brew info php55 Brew Home Php55 Brew Services Cleanup #清除已卸载无用的启动配置文件13 Brew Services restart Php55 #重启php-fpm
Note: Brew services related commands are best not used frequently, prompting is removed
1 ~ should use Launchctl Instead.4 * Feel free volunteer-support it in a TAP.5 6 stopping ' Php55 ' ... (might take a while) 7 ==> successfully stopped ' php55 ' (LABEL:HOMEBREW.MXCL.PHP55) 8 ==> successfully starte d ' Php55 ' (label:homebrew.mxcl.php55)
Homebrew-cask, website transmission, is a set of homebrew based on the MAC Software installation command line tools. The difference from brew is that the latter focuses on the configuration installation of software suites and software environments, while the former is the Mac platform software.
- Installation steps
- Use of Homebrew-cask
Easy software Installation with brew and Brew cask under Mac