User Tools

Site Tools


computing:homebrew

  • homebrew
  • Jonathan Haack
  • Haack's Networking
  • netcmnd@jonathanhaack.com

Homebrew Package Management Tutorial - refer to for sanity on macOS systems.

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew doctor
brew cleanup
brew upgrade
brew cask install <packagename>
brew install caskroom/cask/<packagename>
git -C "$(brew --repo homebrew/core)" fetch --unshallow

Uninstall Homebrew

wget https://gist.github.com/SteveBenner/11254428

Cask Location, followed by location of currently installed packages …

/Volumes/Macintosh HD/usr/local/Library/Taps/caskroom/homebrew-cask/Casks
/Volumes/Macintosh HD/usr/local/Cellar
/Volumes/Macintosh HD/opt/homebrew-cask/Caskroom

Or, run this command to see all installed packages in a txt file in downloads.

brew list > ~/Downloads/brews.txt

Braumeister has a search engine of Homebrew packages - http://braumeister.org/

Common packages worth installing

  • tree
  • webkit2png
  • graphicsmagick
  • git
  • python
  • python3
  • watch
  • wget
  • automake
  • autoconf
  • htop
  • jpegoptim
  • imagemagick
  • fish (fish shell)
  • xquartz
  • Homebrew cask
  • ack (like grep)
  • git
  • bash-completion
  • bash completion script
  • colordiff
  • ffmpeg
  • htop
  • imagemagick
  • gawk
  • gnu-sed
  • cowsay
  • lftp
  • wget
  • axel
  • tree
  • unrar
  • rlwrap
  • readline wrap
  • tig
  • git (command line interface)
  • youtube-dl
  • lynx (web browser)
  • memcached (for caching on web server)
  • Alpine (new version of Pine)
  • mutt
  • vi
  • emacs
  • nano
  • python (add 3 for v.3)
  • pip
  • virtualenv
  • ruby
  • ruby-build (test versions)
  • wget
  • nmap
  • vlc
  • gnuplot
  • tcpdump
  • gnutils
  • coreutils
  • rsync
  • rsnapshot
  • binutils
  • diffutils
  • findutils
  • wireless-tools
  • screen
  • gcc
  • openssh
  • ssh-copy-id

#Path should look like, got to Terminal, sudo nano /etc/paths

/usr/local/bin
/usr/local/sbin
/usr/bin
/bin
/usr/sbin
/sbin

If you use gnutils or coreutils a lot:

PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"

GNU/Linux commands and how to make default

brew tap homebrew/dupes [heals the dupe issue for gnutils]
brew install ed --default-names
brew install findutils --with-default-names
brew install gnu-indent --with-default-names
brew install gnu-sed --with-default-names
brew install gnu-tar --with-default-names
brew install gnu-which --with-default-names
brew install grep --with-default-names
brew install wdiff --with-gettext
        

Homebrew permissions - only if it gets hosed. Otherwise, let homebrew installer or brew doctor fix:

sudo chmod -R +a "$USER allow delete,readattr,writeattr,readextattr,writeextattr,readsecurity,writesecurity,chown,list,search,add_file,add_subdirectory,delete_child,file_inherit,directory_inherit" .
sudo chown -R root:wheel /usr/local
sudo chmod -R -N /usr/local

To install alternative repositories for later installation, such as:

brew install homebrew/<homebrew-binary>/<packagename>
brew tap Homebrew/<homebrew-binary> 
Homebrew/homebrew-apache
Homebrew/homebrew-binary
Homebrew/homebrew-boneyard
Homebrew/homebrew-completions
Homebrew/homebrew-dupes
Homebrew/homebrew-games
Homebrew/homebrew-headonly
Homebrew/homebrew-python
Homebrew/homebrew-science
Homebrew/homebrew-versions
davidchall/homebrew-hep
josegonzalez/homebrew-php 

This tutorial is a designated “Invariant Section” of the “Technotronic” section of Haack's Wiki as described on the Start Page.

oemb1905 2019/01/13 19:18

computing/homebrew.txt · Last modified: 2019/01/13 19:18 by oemb1905