RPM naming question.-part 2

Todd Zullinger tmz at pobox.com
Thu Jul 12 22:00:35 UTC 2007


Aaron Konstam wrote:
> Not only did this program not do what you incate it does, it seems to
> give me the opposite answer:
> [root at localhost ~]# fedora-rpmvercmp  
> Epoch1 :0
> Version1 :6
> Release1 :5-7
> Epoch2 :0
> Version2 :6
> Release2 :5-7L
> 0:6-5-7L is newer
> 
> How come?

Because if you have foo-0.6.5-7L.fc7, the epoch is unset (which is the
same as 0 to rpm), the version is 0.6.5, and the release is 7L.fc7.

$ fedora-rpmvercmp 
Epoch1 :0
Version1 :0.6.5 
Release1 :7L.fc7
Epoch2 :0
Version2 :0.6.5 
Release2 :7.fc7
0:0.6.5-7.fc7 is newer

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Few things are harder to put up with than a good example.
    -- Mark Twain (1835-1910)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 542 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20070712/6e0a54ab/attachment-0001.sig>


More information about the fedora-list mailing list