Skip to content

homebrew and linuxbrew formula Notes

Chris edited this page Feb 4, 2018 · 48 revisions

TOC

working 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 πŸ”—

TODO

  • add entries to table of contents for this .md file

Clone this wiki locally