We use Satellite to create monthly software channels. Servers are then subscribed to those channels to gain access to that month's errata. The problem is that Yum caches the metadata from that channel (about 200mb IIRC) and if that server isn't patched before subscribing it to the next month's channel then it remains in /var/cache/yum while the new channel takes up an additional 200mb of metadata. So, if a server goes months without being patched then you have upwards of a gig in yum cache.
Yum clean all only cleans the current month's metadata and then regenerates it anyways. Normally, this isn't a big deal but we have a lot of servers low on space for /var or / and I'd like to automatically subscribe servers to new monthly channels without having to check their space for the incoming metadata.
I know I can just wipe out everything under var/cache/yum to remove old cache but I would like to find a way to keep it from automatically generating so much data or at least a way of automatically purging it when leaving the channel.
[link][10 comments]