IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New RH: Purge old RPMs from an update directory?
I'm running a regular "grab all my RPM updates from RedHat's remote server" job. It dumps the results to a directory. This is good.

What's a bit of a PITA is weeding through the duplicate packages that result -- package foo-3.5.22-2.i386.rpm has been updated by foo-3.5.22-3.i386.rpm, which is supersceded by foo-3.5.22-4.i386.rpm... Essentially I'm looking for apt-get autoclean for RH. The problem is that it appears that numbering isn't quite as uniform in RH as it is under Debian (policy buys you this).

...but somebody's got to have solved this before.

The alternative would be to let rpm work it out with the '-F' directive. Or will it happily install all prior versions of a package sequentially?
--
Karsten M. Self [link|mailto:kmself@ix.netcom.com|kmself@ix.netcom.com]
[link|http://kmself.home.netcom.com/|[link|http://kmself.home.netcom.com/|http://kmself.home.netcom.com/]]
What part of "gestalt" don't you understand?

   Keep software free.     Oppose the CBDTPA.     Kill S.2048 dead.
[link|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html|[link|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html|http://www.eff.org/...a_alert.html]]
New Why not use "up2date" then... *snicker*
You know, I have this same gripe. Yes the "rpm -Fvh {package}" only installs the latest version in the dir, not sequentially run through them. Only problem is the updates that have to be "Upgraded vs. Freshened" or when they change the break-out of individual pieces to help with maintenance (see recent Perl 5.6.1 fubars in bugzilla for recent gripes and explanations)

My solution so far:

From my "local" psuedo-mirror for distros I support

cd ~ftp/pub/redhat-7.2/updates/
wget -m -nh --cut-dirs=3 [link|ftp://closest.mirror.updates.redhat.com/7.2/en/os/|ftp://closest.mirr...m/7.2/en/os/]

I then have a "deprecated" directory in every "arch" dir, which has chmod 700 on the dir. I then, just ls, then move old junk to "deprecated".

One thing I have yet to do, is actually update the installation so I don't have to update newly installed machines. This is a "|DREAM" for now.

It is a PITA, but well I haven't even looked. Of course the stock answer I get from "everyone", "Use up2date"... yeah Right! I would rather be behind current on Production machine than to "auto-magically" install stuff and break things(like the recent "oops, we forgot to list mod_perl" incident).

And, yes, I shall be looking for somehting... yes the naming convention isn't good right now, but I see a standard forming as of late.

greg, curley95@attbi.com -- REMEMBER ED CURRY!!!

Keep software free. Oppose the CBDTPA. Kill S.2048 dead.
[link|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html|[link|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html|http://www.eff.org/...a_alert.html]]
New Re: RH: Purge old RPMs from an update directory?
Can't you synchronise the directory in your server with the remote directory with rsync or something?

I'll look into this. More later.


Peter
Shill For Hire
[link|http://www.kuro5hin.org|There is no K5 Cabal]
New A start for Purging old RPMs from an update directory
I've been a-lookin.

Found [link|http://www.mat.univie.ac.at/~gerald/ftp/autoupdate/|this thing], called Autoupdate.

Looks to be ok, it's a good start though. Only thing it doesn't really clean it up just makes it so clients won't get the older ones. This would be good for stuff like I do at work.

{imitation style=grand tag=Karsten_M_Self}Oops, appears the docs say it can. Purge mode seems the trick.{/imitation}

Also found [link|http://www.kondara.org/docs/Kondara-Mph-get-HOWTO/C/|documentation] on MPH from Kondara MNU/Linux. seems a bit unwieldy but effective, does not address the purging issue though.

Found a nutty little proggy called [link|http://www.lysator.liu.se/purp/|Purp]. Seems to be what you may be looking for Karsten in the way of managing you RPMs for installation.

greg, curley95@attbi.com -- REMEMBER ED CURRY!!!

Keep software free. Oppose the CBDTPA. Kill S.2048 dead.
[link|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html|[link|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html|http://www.eff.org/...a_alert.html]]
     RH: Purge old RPMs from an update directory? - (kmself) - (3)
         Why not use "up2date" then... *snicker* - (folkert)
         Re: RH: Purge old RPMs from an update directory? - (pwhysall)
         A start for Purging old RPMs from an update directory - (folkert)

I hope you are enjoy it.
33 ms