Gunter Woytowitz wrote:
> I would like to easily remove older versions of rpms from the
> cobbler directories.
>
> I'm always updating my local rpms from the internet sources, and
> over time several versions of the same rpm are stored wasting a lot
> of disk space.

How are you updating?  Using rsync, you could pass the --delete option
(or --delete-after) to remove local files that have been removed from
the remote already.

Another alternative is to use repomanage --old to prune out the old
packages.  Something  like: repomanage --old $dir | xargs rm

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I believe in the noble, aristocratic art of doing absolutely nothing.
And someday, I hope to be in a position where I can do even less.

Attachment: pgps16JC0CNIJ.pgp
Description: PGP signature

_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to