How to keep specified number of rpms in local repo?

Michael Schwendt mschwendt at gmail.com
Tue Apr 17 10:18:50 UTC 2012


On Tue, 17 Apr 2012 10:06:50 +0100, FM (Frank) wrote:

> I have set up a local repo for testing.
> It stores both 32\64 bit pkgs.
> 
> yum-local-plugin does not give an option to keep x number of rpms.
> So how can I get to keep six version of each pkg max.
> 6 foo-$someversion-.i686.rpm
> 6 foo-$someversion-.x86_64.rpm
> /path/to/_local.repo
> 
> This will enable me roll-back with rawhide testing,
> but otherwise a general Q?

There's the "repomanage" tool, which can be told to keep N old package
releases in a repo. That implies that you maintain a repo with your own
script(s). Of course, you could still use yum-plugin-local to populate its
local repo (with packages you use/need) and copy/move packages from there
to your real repo.

-- 
Fedora release 17 (Beefy Miracle) - Linux 3.3.1-5.fc17.x86_64
loadavg: 0.09 0.24 0.24


More information about the users mailing list