Monthly Archives: March 2015

Brew Package Manager Aliases

While installing a package using brew “brew instal package_name” noticed brew didnt complain for the missing “l” in the install, initially I thought it was an error in the brew so I tried “brew install package_name” (with two l’s this time) which passed through fine

Checking brew further:

[secuid0@m0nk /]$ brew
Example usage:
brew [info | home | options ] [FORMULA...]
brew install FORMULA... <------------Nothing about "instal" with a single "l"
brew uninstall FORMULA...
brew search [foo]
brew list [FORMULA...]
brew update
brew upgrade [FORMULA...]
brew pin/unpin [FORMULA...]

Troubleshooting:
brew doctor
brew install -vd FORMULA
brew [--env | config]

Brewing:
brew create [URL [--no-fetch]]
brew edit [FORMULA...]
open https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Formula-Cookbook.md

Further help:
man brew
brew home

Checking the brew.rb file:
[secuid0@m0nk /]$ vi brew --prefix/Library/brew.rb

Found the homebrew supported aliases:

...
aliases = {'ls' => 'list',
'homepage' => 'home',
'-S' => 'search',
'up' => 'update',
'ln' => 'link',
'instal' => 'install', # gem does the same
'rm' => 'uninstall',
'remove' => 'uninstall',
'configure' => 'diy',
'abv' => 'info',
'dr' => 'doctor',
'--repo' => '--repository',
'environment' => '--env',
'--config' => 'config',
}
...

so both install and instal are supported…amongst others

Facebooktwitterredditpinterestlinkedinmailby feather