Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos

I use CentOS 7 server. I am not getting update so I run

yum clean all

It says I want to run rm -rf on /var/cache/yum/

Cleaning repos: base epel extras updates
Cleaning up everything
Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos

It is safe to delete folder like that on CentOS server?

Yes, safe to delete, as long as you arent running another yum process (or another user is), or perhaps another tool might be (like puppet for example).


Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki