Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
43
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

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

あいさつ

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

ふむ!

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
43
Help us understand the problem. What are the problem?