Package management - howto

Dan Track dan.track at gmail.com
Fri Jan 27 16:14:32 UTC 2006


>
> > 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.

That's brilliant. I wish I knew it before. Thanks for your help.

Dan




More information about the fedora-list mailing list