Skip to content

Instantly share code, notes, and snippets.

@jorgerance
Last active January 1, 2020 00:40
Show Gist options
  • Save jorgerance/03fef9e7990bb1b5a2186ac5167e0ea4 to your computer and use it in GitHub Desktop.
Save jorgerance/03fef9e7990bb1b5a2186ac5167e0ea4 to your computer and use it in GitHub Desktop.
[Install GNU utils on macOS]

As of 2019 --with-default-name is deprecaded. Updated packages to install below:

GNU Core Utilities:

brew install coreutils

Common utilities:

brew install binutils
brew install diffutils
brew install ed
brew install findutils
brew install gawk
brew install gnu-indent 	&& echo "PATH=/usr/local/opt/gnu-indent/libexec/gnubin:$PATH" >> ${HOME}/.bashrc
brew install gnu-sed
brew install gnu-tar 		&& echo "PATH=/usr/local/opt/gnu-tar/libexec/gnubin:$PATH" >> ${HOME}/.bashrc
brew install gnu-which 		&& echo "PATH=/usr/local/opt/gnu-which/libexec/gnubin:$PATH" >> ${HOME}/.bashrc
brew install gnutls
brew install grep
brew install gzip
brew install screen
brew install watch
brew install wdiff
brew install wget

Outdated packages on macOS:

brew install bash
brew install emacs
brew install gdb  			# gdb requires further actions to make it work. See `brew info gdb`.
brew install gpatch
brew install m4
brew install make
brew install nano

Useful but non-gnu commands:

brew install file-formula
brew install git
brew install less
brew install openssh
brew install python
brew install rsync
brew install svn
brew install unzip
brew install vim
brew install macvim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment