Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

Generates a Homebrew Brewfile from currently installed formula for easy backup/migration to a new macOS system

License

Notifications You must be signed in to change notification settings

jakewmeyer/Brewfile-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Archive Notes

Homebrew brew bundle dump command offers the same functionality, see this article for an example.

Brewfile Generator

CLI utility for autogenerating .gitignore files to STDOUT

GitHub release Build Status

Purpose

  • Written to provide an easy way of generating a brewfile from currently installed brews/casks
  • Generating brewfiles makes it easy to migrate to a new mac without forgetting Homebrew packages

Install / Setup

$ gem install brewfile

Usage

Overwrite existing brewfile

$ brewfile > ~/brewfile

Append existing brewfile

$ brewfile >> ~/brewfile

Install brews/casks from brewfile

$ cd ~
$ brew bundle

Sample Output

tap 'caskroom/cask'

# Core Homebrew
brew 'autoconf'
brew 'automake'
brew 'bats'
brew 'bdw-gc'
brew 'cmake'
brew 'coreutils'
brew 'crystal-lang'
brew 'curl'
brew 'dosbox'
brew 'findutils'
brew 'fish'
brew 'gdbm'
brew 'geo'
brew 'gettext'
brew 'git'
brew 'gmp'
brew 'go'
brew 'gradle'
brew 'grep'
brew 'gzip'
brew 'icu4c'
brew 'jq'
brew 'libevent'
brew 'libffi'
brew 'libgpg-error'
brew 'libidn2'
brew 'libksba'
brew 'libogg'
brew 'libpng'
brew 'libtool'
brew 'libunistring'
brew 'libvorbis'
brew 'libyaml'
brew 'libzip'
brew 'llvm'
brew 'mas'
brew 'maven'
brew 'nasm'
brew 'nginx'
brew 'nmap'
brew 'node'
brew 'oniguruma'
brew 'openssl'
brew 'openssl@1.1'
brew 'pcre'
brew 'pcre2'
brew 'perl'
brew 'pkg-config'
brew 'python'
brew 'python3'
brew 'readline'
brew 'redis'
brew 'ruby'
brew 'sdl'
brew 'sdl_net'
brew 'sdl_sound'
brew 'sqlite'
brew 'terraform'
brew 'tldr'
brew 'tmux'
brew 'unrar'
brew 'vim'
brew 'w3m'
brew 'wget'
brew 'xz'

# Cask Apps
cask 'docker-toolbox'
cask 'google-chrome'
cask 'hyper'
cask 'java'
cask 'robo-3t'
cask 'sequel-pro'
cask 'slack'
cask 'spotify'
cask 'vagrant'
cask 'virtualbox'
cask 'wireshark'

About

Generates a Homebrew Brewfile from currently installed formula for easy backup/migration to a new macOS system

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published