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

centos
sysadmin
rhel
centos7
rhel7

#1

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?


#2

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).