Help us understand the problem. What is going on with this article?

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

More than 5 years have passed since last update.

あいさつ

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

ふむ!

gogotanaka
20台前半までRubyのコミッターになるくらいには死ぬほどプログラミングをした後、起業をし https://ticketjam.jp/ というサービスに打ち込んでいます。
http://gogotanaka.me/
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
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  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
ユーザーは見つかりませんでした