Centos /var space increase nearly by 900Mb after rebuild?

biz14 asked:

I just rebuild ossec using the mock tool on Centos 6.4 and my /var space rack up almost by 900m is this normal ?

My answer:

You said you used mock. This tool builds packages in a clean chroot environment, but it also keeps a cache of the minimal environment for use in building the next package.

If you don’t intend to build any other packages ever again, then you can clean out all of the data that mock keeps around:

mock -r epel-6-x86_64 --scrub=all

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.