-
Notifications
You must be signed in to change notification settings - Fork 5
homebrew and linuxbrew formula Notes
- General homebrew usage
- Homebrew Cask
- Working with Python 2.x / 3.x
- Build time options / parameters
- Useful Links
- TODOs
To remove soure tarballs and downloaded .DMGs for homebrew and cask
brew cleanup
brew cask cleanup...will remove downloaded tarballs and image files stored within the below directory on macOS.
$HOME/Library/Caches/HomebrewTo print the location / directory where homebrew is storing tarballs for downloaded / installed apps.
brew --cacheThe above command should print the output of the location of the tarballs, ie.
/home/$USER/.cache/HomebrewTo show outdated formula for homebrew
brew outdated
brew cask outdated --greedyA lot of formula installed with
caskupdate themeselves, but can also be updated with the--greedyflag.
brew cask upgrade --greedyTo print a list of taps sourced for homebrew usage
brew tapTo print a pretty π list of installed Homebrew formula and their dependencies in a graphical format
brew deps --tree --installedMore information for working with taps
brew bundleTo overwrite an existing Brewfile
brew bundle --force dumpTo install Homebrew-Cask via Homebrew
brew tap caskroom/caskHomebrew-Cask has recently been migrated to the Homebrew umbrella on github, ie.
Homebrew/homebrew-caskwhereas the "main" formula are located atHomebrew/homebrew-coreon github.
Homebrew-Cask Versions Installation
To install the above mentioned repo
brew tap caskroom/versionsTo install a cask from caskroom/versions/hyper-canary
brew cask install hyper-canaryAfter installing python via homebrew and is properly configured in the
PATH
python -m pip install --upgrade setuptoolspython -m pip install --upgrade pip
β οΈ When using the--userflag withpipon macOS packages, ie.virtualenvwill be placed in `$HOME/Library/Python/[major.minor]/bin/
Homebrew can install concurrent Pythons on the local system.
Homebrew seperates its pythons by creating seperate binaries, ie. python 2.x is located at
/usr/local/opt/python/libexec/bin/pythonand python 3.x is located at
/usr/local/bin/python3Both pythons use seperate pip packagemanagers to manage python dependencies, ie. python 2.x uses
/usr/local/opt/python/libexec/bin/pipand python 3.x uses
/usr/local/bin/pip3Homebrew documentation - Python
To show build time options for a homebrew formula
brew info [mr_fancy_pants_formula]brew info weechat
To search for a brew formula from a cask, ie. kodi
brew search kodiOutput:
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 kodiTo 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/editorExample
set -x EDITOR /home/linuxbrew/.linuxbrew/bin/nvimThen one can edit the formula of choosing with the below command,
brew edit <name_of_formula.rb>Example
brew edit weechat.rbTo list all installed packages with homebrew π»
brew list
brew cask listTo get the SHA 256 hash of a file
shasum -a 256 <name_of_file> | awk '{printf $1}' | pbcopy- Official - search for formula
-
How to Create and Maintain a Tap
-
Formula Cookbook for developers
-
Python for Formula Authors
- A deep dive π into homebrew dependencies
- add entries to table of contents for this .md file
- figure out which binaries belong to which packages, ie. which package installed
locate
If you find any of this info helpful on your journey π click that π βοΈ star button. It sure makes me feel warm and fuzzy π» on the inside.
-
Linux and macOS Operation Notes
- β macOS Op Notes
- π§ Linux Op Notes
- Vim & Neovim Notes
- git Notes
- π fish shell Notes
- ECMAScript Tooling
- π₯§ Raspberry Pi Notes
- asdf version manager Notes
- Bind9 Notes
- Creating a custom motd on Debian Jessie
- ECMAScript Tooling
- Email client Notes
- Email Server Setup Notes Postfix & Dovecot
- Emoji side quest
- fish shell Notes
- π₯ π€ git it got it good Notes
- git Notes
- Graphics and Image Processing Notes
- GUI text editor Notes
- π»π§ Homebrew and Linuxbrew formula Notes
- Linux and macOS Administration Notes
- Linux and macOS Troubleshooting Notes
- MacBook Pro Late 2013 Notes
- Vim & Neovim Notes
- Video Production Notes
- Python Notes
- radare Notes
- Raspberry Pi Notes
- Terminal Emulators
- Tmux Notes
- Web Browser Notes
- Weechat Notes
- Microsoft Windows Notes