[lang]

Present Perfect

Personal
Projects
Packages
Patches
Presents
Linux

Picture Gallery
Present Perfect

rpm repositories

Filed under: Hacking — Thomas @ 20:02

2007-07-01
20:02

I wanted to clean up our work repositories a little, because I'm working on a platform deployment that is using something else than our venerable FC5 set of packages.

There's two things I wanted to do.  First, I wanted something that would clean out old rpm's from a directory - the ones that have been superseded by a newer version of a package.

Second, I wanted a script that could compare two directories (for two different base distros) and tell me which packages are of a different version between the two of them.  This tells me which packages I forgot to rebuild for either platform.

I've been googling for half an hour to find anything helpful, but it's hard to use google when you're not sure what you would call stuff like this.  In the end I caved in and wrote the first script in half an hour with the help of Paul Nasrat's excellent introductory slides (which I need to go through pretty much any time I write any rpm-related code).

Anyway, maybe you know of the existence of a script that does the second thing I want ? If not, odds are I'm going to write it in the next day as time permits.

« Previous Page
picture