Re: RPM version comparison algorithm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jan 01, 2005 at 11:32:41PM +0100, Jos Vos wrote:
> Hi,
> 
> For some reason I thought the rpm version/release comparison was done
> by comparing the dotted components, but this does not seem to be
> the case.  For example:
> 
>   pkg-1.0-3 < pkg-1.0-3A
> 
> but
> 
>   pkg-1.0-3.B > pkg-1.0-3A.B
> 
> To me, this looks strange.  What is the explanation for this?

A change between alphabetic characters and numeric ones is considered as two
components as if there was a dot in between.

Thus you have for your first example 3 < 3.A and for the second one 3.B >
3.A.B.

Robert

-- 
Robert Schiele			Tel.: +49-621-181-2214
Dipl.-Wirtsch.informatiker	mailto:rschiele@xxxxxxxxxxxxxxx

Attachment: pgpt6Ibro8g5a.pgp
Description: PGP signature

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux