LoginSignup
5
7

More than 5 years have passed since last update.

brew install済みのformula一覧を元にbrewfile.shを作るワンライナー

Last updated at Posted at 2015-03-25

brew leavesという、他のformulaに依存されてないformulaを一覧するコマンドがあります。
これさえ知ってれば「あとは分かるな……」です。

brew leaves | ruby -e 'puts "#!/bin/sh";ARGF.each{|s| puts "brew install #{s}"}' > brewfile.sh

brew caskで入れてる方は、依存関係とか気にしなくていいはずなんで、brew cask listでいいんじゃないかと思います。

5
7
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
5
7