yum clean bug
Konstantin Ryabitsev
icon at fedoraproject.org
Fri Dec 9 00:19:08 UTC 2005
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
More information about the devel
mailing list