Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I deleted by mistake the /var/cache folder in my CentOS server. What problem can it cause? I read some forums about the problem it can cause to the yum installer but i am not sure

Can anyone help.

Thanks in advance.

share|improve this question

1 Answer 1

up vote 3 down vote accepted

Normally, there isn't any important data in /var/cache. You need to recreate the directory with correct permission, on my system, it is

drwxr-xr-x  9 root     root 4096 Oct  4 14:52 cache/

yum will lose all downloaded rpm packages. If you need to reinstall a package, yum has to fetch it from the Internet again.

All services will regenerate their cache when they restart. So, you just need to restart your database/web services and do not need to do anything else.

By the way, you should regular clean your /var/cache (but don't delete itself) to free your disk space. You just done it :)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.