Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

homebrew and linuxbrew formula Notes

ipatch edited this page Mar 23, 2018 · 48 revisions

TOC

homebrew cask

⚠️ Homebrew cask is not the SAME thing as emacs cask

Homebrew-Cask Installation

To install Homebrew-Cask via Homebrew

brew tap caskroom/cask

[Homebrew-Cask Versions(https://github.com/caskroom/homebrew-versions] Installation

To install the above mentioned repo

brew tap caskroom/versions

To install a cask from caskroom/versions/hyper-canary

brew cask install hyper-canary

Working with Pythons - 2.x 3.x

Homebrew can install concurrent Pythons on the local system.

Homebrew seperates the pythons by creating seperate binaries, ie. python 2.x is located at

/usr/local/opt/python/libexec/bin/python

and python 3.x is located at

/usr/local/bin/python3

Both pythons use a seperate pip package to manage python dependencies, ie. python 2.x uses

/usr/local/opt/python/libexec/bin/pip

and python 3.x uses

/usr/local/bin/pip3

Python Useful Links

Homebrew documentation - Python

Build time options / parameters

To show build time options for a homebrew formula

brew info [mr_fancy_pants_formula]

brew info weechat

Working with homebrew casks

To install a brew formula from a cask, ie. kodi

brew search kodi

Output:

brew search kodi 0 < 14:24:28
==> Searching local taps...
==> Searching taps on GitHub...
caskroom/cask/kodi caskroom/versions/kodi-development
==> Searching blacklisted, migrated and deleted formulae...

Then to install kodi

brew cask install kodi

Homebrew 🍻 formula are stored in the following location on macOS (10.12.6)

/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/

However, linuxbrew formula are more than likely located at the below path on Debian Jessie

/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/

To edit a formula, make sure the $EDITOR environment variable is set to your favorite text editor. ie. in the fish shell,

set -x EDITOR /path/to/your/favorite/editor

Example

set -x EDITOR /home/linuxbrew/.linuxbrew/bin/nvim

Then one can edit the formula of choosing with the below command,

brew edit <name_of_formula.rb>

Example

brew edit weechat.rb

To list all installed packages with homebrew 🍻

brew list
brew cask list

To get the SHA 256 hash of a file

shasum -a 256 <name_of_file> | awk '{printf 1ドル}' | pbcopy

Useful Links πŸ”—

TODOs

  • add entries to table of contents for this .md file
  • figure out which binaries belong to which packages, ie. which package installed locate

Frequent Flyers ✈️

❀️ ~/.πŸ› πŸˆ

Clone this wiki locally

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /