
It might be be helpful to get more information on apache-spark which is where the command brew info comes in handy. brew search sparkįrom the image above, there is a potential Apache Spark package called apache-spark that might be useful to install. For example, if you are are interested in installing Apache Spark, you can use the command below to see if there is a Apache Spark package to install. The image below shows the output of using brew search.Ī more practical usage of the brew search command is to use a more refined query. brew rm wgetīrew search lists all the possible packages that you can install. You can substitute wget for the package you want to uninstall. The command below uninstalls the package wget. You can substitute wget for the package you want to install. The command below installs the package wget. After you enter your password, the installation will start. You’ll be prompted to give your password, which is usually the one that you also use to unlock your Mac when you start it up.

Open a terminal and type the command below. You can do this by opening a new terminal and typing in the command below. Check again to see if Xcode Command Line Tools is installed. If a License Agreement appears, please read it and then click Agree.ģ. If you see a prompt like the one in the image below, click on Install. Type the following into your terminal to install Command Line Tools. You already have Xcode or Xcode Command Line Tools installed.Ģ. If you see a path output like in the image above, please skip to the "Install Homebrew" section of the tutorial. You can check if Command Line Tools or Xcode is installed by typing the command below in your terminal. You can do this by clicking on the Spotlight magnifying glass at the top right of the screen, type terminal and then click on the Terminal icon.

One advantage of this is that when you install Command Line Tools, it installs Git which you need as Homebrew is essentially all Git and Ruby scripts underneath.ġ. Command Line Tools gives Mac users many commonly used tools, utilities, and compilers. In this tutorial, you will install Command Line Tools as they are a more reasonable size. In order to install Homebrew, you need to install either the Xcode Command Line Tools (about 100 MB) or the full Xcode package (about 10 GB).

You will find that you can utilize Homebrew for data science as it makes it a lot easier to install additional technologies on Mac such as Apache Spark and the software Graphviz. Homebrew is a package manager designed for Mac that is useful to install. If you are an R user, you may have used the RStudio Package Manager to install, update, or remove packages. If you are a Python user, you may have used the package manager pip or the package manager functionality of conda to install, update, or remove packages. A package manager is a tool which automates the process of installing, updating, and removing packages. Packages are collections of files that are bundled together that can be installed and removed as a group. The creators of Homebrew say that it is the “ missing package manager for macOS”.
