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

Re: how to differentiate between binary and source rpm



Hi Jeff,

I will go according to your recommendation. please tell me how to test
for non-existence of tag RPMTAG_SOURCERPM in any rpm.

thanks and regards
Sharma

On 10/28/06, Jeff Johnson <n3npq jbj gmail com> wrote:

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 redhat com
https://www.redhat.com/mailman/listinfo/rpm-list



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