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

Re: how to differentiate between binary and source rpm



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


regards
Sharma

On 10/27/06, Rohitashva Sharma <rs1975in gmail com> wrote:
Hi,

Thanks for the prompt reply..

regards
Sharma

On 10/27/06, Luciano Miguel Ferreira Rocha <strange nsk no-ip org> wrote:
> On Fri, Oct 27, 2006 at 08:32:58PM +0200, Rohitashva Sharma wrote:
> > Dear All,
> >
> > Is there are way to detect whether the given rpm file is source rpm or
> > binary rpm. One possible way is looking at the filename but what if
> > filename is altered.
>
> From rpm --querytags, I found %{SOURCEPACKAGE}:
> $ rpm -qp --qf '%{name}-%{SOURCEPACKAGE}\n' gpart-0.1h-3.1.src.rpm rpms/RPMS/i386/gpart-0.1h-3.1.i386.rpm
>
> gpart-1
> gpart-(none)
>
> --
> lfr
> 0/0
>
>
> _______________________________________________
> 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]