Table of contents:

Homebrew: install the required software on Mac using the "Terminal" command
Homebrew: install the required software on Mac using the "Terminal" command
Anonim

For those who are tired of installing Mac applications by dragging and dropping them from the.dmg to the Applications folder. There is a better way.

Linux users have one distinct advantage over Windows and Mac users: they have repositories and package managers. Instead of looking for the application site, downloading it from there and installing it, you just need to tell Linux "Install it!" - and it will install. With Homebrew, your Mac will learn to do the same.

Homebrew is “the missing package manager for macOS,” as its creator calls it. It is originally intended for compiling applications from source. If you haven't forgotten about it yet, in Mac, behind the beautiful Aqua shell lies the real Unix, in which building from source is a common thing. But Homebrew does more than just that. Together with the Homebrew-Cask add-on, it is able to install applications from the Terminal.

Installing Homebrew and Homebrew-Cask

Installing Homebrew is easy.

First of all, install Xcode, a suite for advanced Terminal usage. Open "Terminal" and copy the following command there:

xcode-select --install

Then give the command to install Homebrew:

/ usr / bin / ruby -e $ (curl -fsSL

Enter your password if required. Before doing anything, Homebrew will stop and explain what it is doing.

Wait for Homebrew to install - it will take about a minute. Terminal will notify you that the installation is complete.

Now enter a command like this:

brew tap caskroom / cask

Operations with programs

Image
Image

Homebrew is ready. Let's try it.

To install something, enter the command in the "Terminal":

brew cask install package_name

If you typed up or do not know the exact name of the package, Homebrew-Cask will suggest the correct spelling.

For example, to install Chrome, enter:

brew cask install google-chrome

Chrome will appear in the Applications folder.

If you want to install multiple applications, enter:

brew cask install firefox double-commander

Homebrew-Cask will install Firefox and Double Commander. You can enter as many items as you like. Much more convenient than downloading installation files, isn't it?

To uninstall an application, you can use a command like this:

brew cask uninstall google chrome

This way you can uninstall several unnecessary applications at one time.

Removing Homebrew

Removing a manager is as easy as installing. Execute in the "Terminal":

ruby -e $ (curl -fsSL

Homebrew lets you install programs without opening your browser or App Store. Linux users, and anyone else who prefers Terminal, will appreciate this.

If you are longing for the command line or have moved to a new system and want to install everything at once, Homebrew will help.

Homebrew →

Homebrew-Cask →

Recommended: