Homebrew (macOS)

Home

Installation of Homebrew

For more informations

1. Install Xcode

2. Install Homebrew

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

3. Debug it

brew doctor

If you aren't admin

You can add a basic user to the sudoers file as admin.
source

1. Log in as admin

2. Launch Terminal and type:

sudo visudo

3. Navigate down to the “#User privilege specification” section

It should look like this:

# User privilege specification
root    ALL=(ALL) ALL
%admin  ALL=(ALL) ALL

4. Insert the username you want add to the sudoers file

Type i to enter the Insertion Mode.

username ALL=(ALL) ALL

Type esc to quit Insertion Mode, then type :wq to quit Vi.

Usefull commands

Before anything

You should update the local data base of brew before any operation.

brew update

Cleanup

This command is used to remove/uninstall old versions of packages.

To remove the old version(s) of a certain package

brew cleanup package

To see what could be cleaned up

brew cleanup -n

To clean up everything at once

brew cleanup

Doctor

To fix all the warnings (outdated Xcode/CLT and unbrewed dylibs are very likely to cause problems).

brew doctor

Get informations

To have some infos on the package (version,…), you can use this line before intalling:

brew cask info packageName

Install package

brew install package

Leaves

List of the packages which can be removed without problem.

brew leaves

Missing

List of the missing packages, that means the recipes that are a dependency of another installed package but are not installed.

brew missing

Outdated

To find out which packages are outdated.

brew outdated

Remove software

uninstall and rm are also available.

brew remove softwareName

Search

Before installing a package, you can search it to choose the version (Pyhton 2 or 3), to have the right name,…

brew search package

In Cask

Go to this page: Cask
and type the wanted sofware.

This site is also available.

Upgrade

This command will upgrade the outdated packages.

All

brew upgrade

A certain package

brew upgrade package

Stop a package from being updated

brew pin package

Remarque: The unstop it, replace pin with unpin.

And now? We install stuff!

Ant

Apache Ant is a Java library and command-line tool whose mission is to drive processes described in build files as targets and extension points dependent upon each other. The main known usage of Ant is the build of Java applications. Ant supplies a number of built-in tasks allowing to compile, assemble, test and run Java applications.

brew install ant

Cask

Homebrew Cask extends Homebrew and brings its elegance, simplicity, and speed to macOS applications and large binaries alike.

brew tap caskroom/cask

Remarque: When you install stuff with Cask (not as admin), you have to give the right to write to the 'Staff' group on '/Users/alexandre/Library/QuickLook' (through the GUI).

QuickLook plugins (with Cask)

ProvisionQL

Preview iOS / macOS app and provision information

brew cask install provisionql
QLColorCode

Preview source code files with syntax highlighting

brew cask install qlcolorcode
QLStephen

Preview plain text files without or with unknown file extension. Example: README, CHANGELOG, index.styl, etc.

brew cask install qlstephen
QLMarkdown

Preview Markdown files

brew cask install qlmarkdown
QuickLook plugin for BPG

This is a QuickLook plugin for OS X 10.11+ to display the dimensions of an image and its file size in the title bar. It can also preview and generate Finder thumbnails for unsupported images formats like bpg and WebP.

brew cask install qlimagesize

Clisp

Common Lisp is a high-level, general-purpose, object-oriented, dynamic, functional programming language.

brew install clisp

ExifTool by Phil Harvey

ExifTool is a platform-independent Perl library plus a command-line application for reading, writing and editing meta information in a wide variety of files.

brew install exiftool

go

Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.

brew install go

Remarque: You have to add this to the PATH:

# go path
export GOPATH=/Users/alexandre/go/
export PATH=$GOPATH/bin:$PATH

Licence (through go)

Create licenses from the command-line.

go get -u github.com/nishanths/license

mas

A simple command line interface for the Mac App Store. Designed for scripting and automation.

brew install mas

Support to BPG

BPG(Better Portable Graphics) is a new image format. Its purpose is to replace the JPEG image format when quality or file size is an issue.

brew install libbpg

Others

Awesome OS X Command Line

Use your OS X terminal shell to do awesome things.

 m-cli

💥 Swiss Army Knife for macOS !

Mac CLI

 macOS command line tools for developers – The ultimate tool to manage your Mac. It provides a huge set of command line commands that automatize the usage of your OS X system.

Mackup

Keep your application settings in sync (OS X/Linux)

# Install Mackup
brew install mackup

# Launch it and back up your files
mackup backup

# Or

# Launch it and restore your files
mackup restore

ToolKit © 2017
About