Catalogue
The yum cache was eating up more disk space than I expected

The yum cache was eating up more disk space than I expected

🌐 日本語で読む

yum cache size

1
2
# du -sh /var/cache/yum
155M /var/cache/yum

155 MB, yikes.

Clearing the yum cache

1
2
3
4
5
# yum clean all
読み込んだプラグイン:fastestmirror
リポジトリーを清掃しています: base epel extras mysql-connectors-community mysql-tools-community mysql56-community nginx treasuredata updates
Cleaning up everything
Cleaning up list of fastest mirrors

Checking the yum cache size again

1
2
# du -sh /var/cache/yum
8.0K /var/cache/yum

All cleaned up!

This came in handy when I got a low-disk-space alert from a server and wanted to free up even a little bit of space.

Since you don’t always get to work with clients who can provide generous server specs, I felt this is a piece of knowledge worth keeping in your back pocket.

kenzo0107

kenzo0107