Homebrew is a package manager inspired by GBU/Linux OS’es, such as Aptitude or RPM, which allow you to install required libraries with the use of a few commands. Installing applications such as MySQL or PHP with Homebrew takes seconds while installing them manually could take at least 10 minutes and cause confusion if you don’t have much experience with the Mac Terminal.
Homebrew relies upon Xcode. Make sure you have Xcode installed, and if not, you can find Xcode in the Apple AppStore.
You will be required to have some fluency with the Mac Terminal App which is situated in the Utilities Folder under the Applications Folder.
Installing Homebrew is straightforward; you’re only required to paste a single line of code in to your Terminal in order to install it.
1. Open your Terminal App
2. Copy and paste the following command, and then press ENTER
3. Hit the RETURN key when asked to do so
4. Follow the installation process on screen
When necessary, you can update Homebrew by simply using the following command in the Terminal App:
You can also enable auto completion for your brew commands by entering the command:
Uninstalling Homebrew is just as simple as installing it.
1. Open the Terminal App
2. Copy and paste the following command and then press ENTER: