On Sat, 2002-08-17 at 00:23, Werner Puschitz wrote:
> 
> Is there a simple way to find out which RPM version is newer?
> 
> For instance I have a bunch of RPM files with the same RPM name but with
> different version numbers.
> Doing a numeric comparison doesn't work in all cases since some versions
> contain letters like "x", "p", etc. And doing a string comparison doesn't 
> work either when you have numbers like "9" and "13" which would result in 
> "9" being greater.
> 
> Is there a simple method to find out which RPM version is newer?
> 
I compare buildtimes in the script I wrote to remove duplicate rpms from
my local updates dir.

rpm -qp --queryformat '%{BUILDTIME}'

Bret

> Thanks
> Werner
> 
> 
> 
> 
> 
> -- 
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
> https://listman.redhat.com/mailman/listinfo/redhat-list




-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to