romanzolotarev.com: support and follow me on Mastodon and Twitter

Tested on macOS 10.13 with Homebrew 1.7

Manage packages with brew(1)

Homebrew is a package manager for macOS.

Install

$ cd /tmp
$ curl -so install \
  https://raw.githubusercontent.com/Homebrew/install/master/install
$ less install
...
$ /usr/bin/ruby install
...
$

Install a package

Install a program with brew install, for example, entr(1):

$ brew install entr
==> Downloading https://.../entr-4.1.highsierra.bottle
################################################ 100.0%
==> Pouring entr-4.1.highsierra.bottle.tar.gz
🍺  /usr/local/Cellar/entr/4.1: 7 files, 40.7KB
$

To install macOS apps like VirtualBox, for example, use brew cask install.

Uninstall a package

$ brew uninstall entr
Uninstalling /usr/local/Cellar/entr/4.1... (7 files, 40.7KB)
$

Clean up

$ brew cleanup; brew cask cleanup
...
==> This operation has freed approximatelly 130.2MB of disk space.
==> Removing cached downloads
...
==> This operation has freed approximatelly 91.2MB of disk space.
$

Uninstall

$ cd /tmp
$ curl -so uninstall \
  https://raw.githubusercontent.com/Homebrew/install/master/uninstall
$ vis uninstall
...
$ /usr/bin/ruby uninstall --help
...
$