Subscribed unsubscribe Subscribe Subscribe

@peccul is peccu

(love peccu '(emacs lisp cat outdoor bicycle mac linux coffee))

brew rmtreeで依存するものも含めて消す

MacBook Airの容量が足りなくなってきたので、Homebrewの整理をします。

homebrew-rmtreeを使うと依存するものも含めて削除できます。便利

github.com

こんな感じで使います

% brew rmtree ffmpeg
==> Examining installed formulae required by ffmpeg...
 \  12 / 21

Can safely be removed
----------------------
lame
libvo-aacenc
lua
x264
xvid
zeromq

Proceed?[y/N]: y
==> Cleaning up packages safe to remove

Uninstalling /usr/local/Cellar/ffmpeg/2.8.1_1... (210 files, 45M)

Uninstalling /usr/local/Cellar/x264/r2601... (9 files, 3.3M)

Uninstalling /usr/local/Cellar/lame/3.99.5... (25 files, 2.1M)

Uninstalling /usr/local/Cellar/libvo-aacenc/0.1.3... (15 files, 336K)

Uninstalling /usr/local/Cellar/xvid/1.3.4... (9 files, 1.3M)

Uninstalling /usr/local/Cellar/lua/5.2.4_1... (81 files, 1.1M)

Uninstalling /usr/local/Cellar/zeromq/4.1.3... (63 files, 3.3M)

依存するものがあって消せないときはこんな感じです。

% brew rmtree gmp
gmp can't be removed because other formula depend on it:
cloog, gcc, isl, libmpc, mpfr, homebrew/php/php55