[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: yum clean bug



On Thu, 2005-08-12 at 22:59 +0000, Luciano Miguel Ferreira Rocha wrote:
> 1. yum clean ignores repo configuration and works at filesystem level
> only.

cd /var/cache/yum
for DIR in *; do 
    if ! grep -q "[$DIR]" /etc/yum.repos.d/*.repo; then 
        rm -rf $DIR
    fi
done

There you go. You can put it in your cron.weekly. 
Now can we move on?

Regards,
-- 
Konstantin Ryabitsev
McGill University WSG
Montréal, Québec


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]