suin.io

brew cleanupでディスクが1.2GB空いた

suin2017年1月30日

長期間Homebrewを使っていると、アップグレードを何度も繰り返していくうちに古いバージョンが蓄積してディスク容量を圧迫することがある。Homebrewにはbrew cleanupという古いバージョンを一括削除するコマンドがあり、たまに実行しておくと余計な容量を削減できる。僕の場合では、1.2GBのディスク容量が空いた。Homebrew運用歴が長いほど効果がありそうだ。

❯ brew cleanup
Removing: /usr/local/Cellar/composer/1.2.4... (5 files, 1.6M)
Removing: /usr/local/Cellar/composer/1.3.0... (5 files, 1.7M)
Removing: /usr/local/Cellar/composer/1.3.1... (5 files, 1.7M)
Removing: /usr/local/Cellar/curl/7.51.0... (368 files, 2.6M)
Removing: /usr/local/Cellar/dinghy/4.4.2... (182 files, 625.1K)
Removing: /usr/local/Cellar/docker/1.12.3... (11 files, 10.8M)
Removing: /usr/local/Cellar/docker/1.12.5... (11 files, 10.8M)
Removing: /usr/local/Cellar/freetype/2.7... (61 files, 2.4M)
Removing: /usr/local/Cellar/go/1.7.4_1... (6,438 files, 250.7M)
Removing: /usr/local/Cellar/go/1.7.4_2... (6,438 files, 250.7M)
Removing: /usr/local/Cellar/httpie/0.9.8... (933 files, 11.4M)
Removing: /usr/local/Cellar/icu4c/58.1... (242 files, 65M)
Removing: /usr/local/Cellar/libpng/1.6.26... (26 files, 1.2M)
Removing: /usr/local/Cellar/libpng/1.6.27... (26 files, 1.2M)
Removing: /usr/local/Cellar/libxml2/2.9.4... (276 files, 9.8M)
Removing: /usr/local/Cellar/libxml2/2.9.4_1... (277 files, 9.8M)
Removing: /usr/local/Cellar/mercurial/4.0.1... (432 files, 6.0M)
Removing: /usr/local/Cellar/node/7.2.1... (3,885 files, 45.4M)
Removing: /usr/local/Cellar/node/7.3.0... (3,892 files, 45.5M)
Removing: /usr/local/Cellar/openssl/1.0.2j... (1,695 files, 12M)
Removing: /usr/local/Cellar/pandoc/1.19.1... (72 files, 88.4M)
Removing: /usr/local/Cellar/php70/7.0.14_7... (332 files, 38.8M)
Removing: /usr/local/Cellar/python/2.7.12_2... (3,477 files, 46.7M)
Removing: /usr/local/Cellar/python3/3.5.2_3... (3,529 files, 53.7M)
Removing: /usr/local/Cellar/ruby/2.3.3... (1,263 files, 18.9M)
Removing: /usr/local/Cellar/sqlite/3.15.2... (11 files, 2.9M)
Removing: /usr/local/Cellar/sqlite/3.16.0... (11 files, 2.9M)
Removing: /usr/local/Cellar/vim/8.0.0130... (1,713 files, 23.3M)
Removing: /usr/local/Cellar/vim/8.0.0134... (1,713 files, 23.3M)
Removing: /usr/local/Cellar/vim/8.0.0134_2... (1,713 files, 23.3M)
Removing: /usr/local/Cellar/vim/8.0.0142... (1,713 files, 23.3M)
Removing: /usr/local/Cellar/vim/8.0.0160... (1,713 files, 23.3M)
Removing: /usr/local/Cellar/vim/8.0.0165... (1,713 files, 23.3M)
Removing: /usr/local/Cellar/vim/8.0.0172... (1,713 files, 23.3M)
Removing: /usr/local/Cellar/vim/8.0.0178... (1,713 files, 23.3M)
Removing: /usr/local/Cellar/vim/8.0.0222... (1,713 files, 23.3M)
Removing: /usr/local/Cellar/xz/5.2.2... (91 files, 1.4M)
Removing: /usr/local/Cellar/yarn/0.17.10... (5,638 files, 18.2M)
Removing: /usr/local/Cellar/yarn/0.18.1... (5,639 files, 18.2M)
Removing: /usr/local/Cellar/zplug/2.4.0... (807 files, 20.2M)
Removing: /usr/local/Cellar/zsh/5.3... (1,202 files, 8.6M)
Removing: /Users/suin/Library/Logs/Homebrew/cot... (125B)
Removing: /Users/suin/Library/Logs/Homebrew/node... (68B)
Removing: /Users/suin/Library/Logs/Homebrew/zplug... (107B)
==> This operation has freed approximately 1.2G of disk space.
RELATED POSTS