Homebrew: we put the desired software on the Mac with the “Terminal” command

Linux users have one undeniable advantage over Windows and Mac users: they have repositories and package managers. Instead of looking for an application site, downloading it from there and installing it, it’s enough to order Linux “Install it!” – and it will install. With Homebrew, your Mac will learn to do the same.

Homebrew is the “missing packages manager for macOS”, as the creator calls it. Initially, it is intended for compiling applications from source code. If you have not forgotten about this, in Mac behind the beautiful shell of Aqua is a real Unix, in which the assembly of the source code – a common thing. But Homebrew can not only do this. Together with the addition of Homebrew-Cask, it is able to install applications from the “Terminal”.

Installing Homebrew and Homebrew-Cask

Installing Homebrew is easy.

First of all, install Xcode – a set for extended use of the “Terminal”. Open “Terminal” and copy the following command to it:

xcode-select --install

Then give the command to install Homebrew:

/ usr / bin / ruby ​​-e "$ (curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

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

Wait until Homebrew is installed – it will take about a minute. “Terminal” will notify you when the installation is complete.

Now enter the following command:

brew tap caskroom / cask

Operations with programs

caskroom.github.io

Homebrew is ready. We will try it.

To install something, enter the following command in Terminal:

brew cask install package_name

If you are sealed or do not know the exact name of the package, Homebrew-Cask will tell you 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 several applications, enter:

brew cask install firefox double-commander

Homebrew-Cask will install Firefox and Double Commander. You can enter as many titles as you want. Much more convenient than downloading the installation files, is not it?

To delete an application, you can use this command:

brew cask uninstall google chrome

So you can remove several unnecessary applications at a time.

Homebrew Removal

Delete the manager is as easy as installing it. Run in the “Terminal”:

ruby -e "$ (curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"

Homebrew allows you to install programs without opening either the browser or the App Store. Linux users, and everyone who prefers “Terminal”, will appreciate it.

If you missed the command line or moved to a new system and want to install everything at once – Homebrew will help.

Homebrew →

Homebrew-Cask →