Package management - howto

Andy Green andy at
Fri Jan 27 14:57:28 UTC 2006

Dan Track wrote:

> Does anyone have a script to move old updates to another directory and
> keep new updates in one directory. I tried writing one, but the major
> problem is the version nomenclature. Some packages have "+"signs, some
> have words in them, there isn't a consistency here. How does redhat
> keep there online repository in order, can I get a hold of a script?

Get RPM to parse for you in your script, eg

rpm -qp /path/to/rpmfile.rpm --queryformat "%{NAME} %{VERSION} %{ARCH}"

Then use cut, etc to get the whitespace delimited output.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4492 bytes
Desc: S/MIME Cryptographic Signature
Url : 

More information about the users mailing list