Re: how to differentiate between binary and source rpm

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

 




On Oct 27, 2006, at 2:51 PM, Rohitashva Sharma wrote:

Hi,
I tried 'file' command and also got good result

file cdb-soap-auth-cern-nice-1.0.8-1.src.rpm cdb-soap-auth-cern- nice-1.0.8-1.src.rpm: RPM v3 src i386 cdb-soap-auth-cern-nice-1.0.8-1

> file cdb-soap-auth-cern-nice-1.0.8-1.noarch.rpm
cdb-soap-auth-cern-nice-1.0.8-1.noarch.rpm: RPM v3 bin i386
cdb-soap-auth-cern-nice-1.0.8-1


Yep, the file command will work.

Be forewarned, rpm-4.4.8 is in the process of dropping the lead
(which will break your test for a srpm), so I still recommend
testing for the non-existence of RPMTAG_SOURCERPM to
detect a SRPM.

But you probably don't care ;-)

73 de Jeff

_______________________________________________
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