Re: yum clean bug

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

 



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

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux