Installing Software with a Package Manager
You can install thousands of new commands for use within the Terminal. The method of installation is different from what you’ve seen in the point-and-click world, where you run a graphical installer or drag icons into your Applications folder. Instead, you use a program called a package manager, which itself runs on the command line. Setting up a package manager is a multi-step process, but when it’s complete, you’ll be able to install new commands extremely easily.[28] We will lead you through the basic steps:
Obtain a free Apple Developer ID at http://developer.apple.com. (You don’t have to be a software developer to get an ID.)
Download and install Xcode, Apple’s software development application.
Download and install the Command Line Tools for Xcode.
Download and install Homebrew, a convenient, free package manager.
Once these steps are complete, you can install new command-line
programs easily with Homebrew, by typing the command brew
install.
[28] Frankly, setting up a package manager on the Mac is tedious, inconvenient, error-prone, and overall a pain in the neck. (Much more difficult than similar setups in the Windows and Linux world.) But the end result is definitely worthwhile and we recommend it.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access