Re: How to prune out old rpm files from fedora repository?

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

 



On Fri, 2007-02-09 at 14:34 -0500, Todd Zullinger wrote:
> I've used the repomanage tool to do this.  Something like this for one
> of my local repositories:
> 
>     repomanage --old $repo | while read package; do
>         dir=$(dirname "$package")
>         archive="$topdir/archive/$(basename $repo)"
>         [ ! -d $archive ] && mkdir -p $archive
>         mv "$package" $archive
>     done

This is great, but how would one keep the nightly rsync against the yum
mirror from downloading again all of the RPMs that were pruned from the
local repo?  I looked through the rsync man page, but I didn't see
anything obvious that would apply here.

Regards,

Ranbir
-- 
Kanwar Ranbir Sandhu
Linux 2.6.20-1.2962.fc6 i686 GNU/Linux 
15:13:29 up 4 days, 20:05, 1 user, load average: 0.46, 0.32, 0.18 



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux