44
42

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

HomebrewをBrewfileにdumpして楽々お引っ越し

Last updated at Posted at 2015-03-30

あいさつ

Macの引っ越しをするときに、Homebrew公式から提供されているbrewdle(RubyでいうBundlerの様なもの)のdump機能を使いましたらちょっと気持ち良かったので紹介します.

(brew-caskを使用している場合はcaskのも含まれます!)

brewdler

brewdler をまだ導入していない場合は

$ brew tap Homebrew/brewdler

でOK

brewdleっで語呂が悪い気が

brewdler dump

$ brew brewdle dump 

Brewfile というファイルが吐き出される

$ less Brewfile
Brewfile
tap 'caskroom/cask'
tap 'homebrew/brewdler'
tap 'komagata/mycask'
tap 'peco/peco'
brew 'ansible'
brew 'autoconf'
brew 'brew-cask'
brew 'chromedriver'
brew 'cloog'
brew 'cmake'
brew 'curl'
brew 'dirmngr'
brew 'emacs'
brew 'ffmpeg'
brew 'ffmpeg2theora'
brew 'freetype'
brew 'gcc'
brew 'gdbm'
brew 'ghc'
brew 'git'
brew 'gmp'
brew 'gnupg'
brew 'gnupg2'
brew 'gpg-agent'
...

おお、アルファベティカルに並んでる

brew brewdle

あとは新しいパソコンなどにBrewfileを移して要らないもの消すなり適当にやって

$ brew brewdle

brew list で確認

$ brew list
ansible		ffmpeg		gnupg2		libgpg-error	libvorbis	phantomjs	redis		xvid
autoconf	ffmpeg2theora	gpg-agent	libksba		libyaml		pidof		ruby-build	xz
brew-cask	freetype	imagemagick	libmpc		memcached	pinentry	scala		z
chromedriver	gcc		isl		libogg		mongodb		pkg-config	sqlite
cloog		gdbm		jpeg		libpng		mpfr		postgresql	theora
cmake		ghc		lame		libtool		node		pth		tmux
curl		git		libassuan	libusb		openssl		python3		tree
dirmngr		gmp		libevent	libusb-compat	ossp-uuid	rbenv		wget
emacs		gnupg		libgcrypt	libvo-aacenc	peco		readline	x264

ふむ!

44
42
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
44
42

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?