brew update でエラー


brew updateでエラーが発生した時のメモ。

error: The following untracked working tree files would be overwritten by merge:
    Library/Formula/appledoc.rb
    Library/Formula/dromeaudio.rb
    Library/Formula/pdf2svg.rb
    Library/Formula/tcpurify.rb
Please move or remove them before you can merge.
Aborting
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master

とりあえず書かれている通りに退避する。

cd /usr/local/Library/Formula
mv appledoc.rb appledoc.rb.org
mv dromeaudio.rb dromeaudio.rb.org
mv pdf2svg.rb pdf2svg.rb.org
mv tcpurify.rb tcpurify.rb

もう一度アップデートする。Warningが発生したけど成功。

brew update
Warning: Could not create link for homebrew/dupes/fetchmail, as it
conflicts with Homebrew/homebrew/fetchmail. You will need to use the
fully-qualified name when referring this formula, e.g.
brew install homebrew/dupes/fetchmail
Warning: Could not create link for homebrew/dupes/gdb, as it
conflicts with Homebrew/homebrew/gdb. You will need to use the
fully-qualified name when referring this formula, e.g.
brew install homebrew/dupes/gdb
Updated Homebrew from 0385f80f to 78203f9c.

Warningがきになるけどとりえあえずインストールできたので、競合っぽいしこれはあとで調べよう。