-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Saturday, 2009-08-08 at 01:37 -0500, David C. Rankin wrote:
Listmates,
Over the life of 11.0 I had been using the --keep-packages option for all updates so that I would have a local repository for the kids machines, etc. to prevent having to download files more than once. It has worked great. But over the course of time I have accumulated up to 10 or so older versions of all packages (17G worth). There were 10,617 files total so I wasn't going to do it by hand. I needed a way to parse through the local repository and move all older versions to a 'duplicates' folder so they could be removed. Thankfully the rpm naming convention is fairly consistent that allowed this to be done relatively painlessly.
That's very interesting :-) Thanks!
Anyway, I wrote a small script to do this and to provide a short log of what was done. So just in case anyone else has a directory full of multiple versions of rpms and would like to separate them without having to reinvent the wheel, I've attached the script. The script relies on FILE DATE to determine the most recent version rather than a parse and sort of the version numbers, so if you moved all your rpms to a directory such that they all have the same date, this won't work.
Ah... well, perhaps somebody else can chirp in and add that logic to your script ;-) - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkp9OVMACgkQtTMYHG2NR9V7VgCggaTLlohLESLmE8xvDiq2WTru wIgAoIqKHdMimQY/FKXi97syW+JEfM/y =xhR0 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org