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

Re: how to differentiate between binary and source rpm




On Oct 28, 2006, at 2:44 AM, Rohitashva Sharma wrote:

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.


Presumably you want a test from the shell.

Here's a source rpm:

$ rpm -qp --qf '%{sourcerpm}\n' rpm-4.4.8-0.1.src.rpm
(none)

Here's a binary rpm:

$ rpm -qp --qf '%{sourcerpm}\n' rpm-4.4.8-0.1.i386.rpm
rpm-4.4.8-0.1.src.rpm

73 de Jeff


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