[Mac] brew software installation has always missed apt-get under ubuntu, because it is really convenient, what to install, a command to handle it, and all the dependent packages are maintained by apt-get. Download, compile, and install. What kind of software is uncomfortable to use, a command to uninstall! I miss apt-get and found the alternative tool MacPorts, which is also said to solve my problem. Unfortunately, I cannot update the local software index library! The homebrew homepage provides a detailed description of brew, but we prefer to download it for practical drills! Install brew use brew installation software use brew uninstall software use brew retrieval software 1. install brew: Shell code curl-LsSf http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz-C/usr/local -- strip 1 the above command can be found on the official website! 2. Use brew to install software. wget is indispensable, but it is not available on mac by default! Let's start with it: Shell code brew install wget or even install tomcat: Shell code brew install tomcat or unrar: Shell code brew install unrar 3. it is easy to use brew to uninstall the software, so it is easier to uninstall it: Shell code brew uninstall unrar 4. use the brew retrieval software to check what we can find: Shell code brew search/apache * // apache */uses a regular expression. Use/to separate the expressions! So far, brew has been able to solve most of my software installation problems!