Re: querying for i386 versus x86_64 versions

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

 



On Tue, Mar 14, 2006 at 02:52:27PM -0800, Marcin Krzysztof Porwit wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I've noticed that on the 64-bit version of Fedora Core 4, when I query
> for certain packages, they show up twice. For example, and
> 	rpm -q samba-common
> shows that there are two copies of samba-common on the system:
> 	samba-common-3.0.14a
> 	samba-common-3.0.14a
> I guessed at the fact that one is an x86_64 version and the other is
> an i386 version, but I haven't been able to find a programmatic way
> of disambiguating this scenario. There don't seem to be flags to --query
> to provide this information, and it is not returned by --info.

rpm -q --qf '%{name}.%{arch}\n' samba-common

> 
> On a related note, how do you specify architecture requirements on the
> "Requires:" line? So that if I built my own version of samba, I could
> specify that it requires both
> 	samba-common-<myversion>.x86_64.rpm
> and
> 	samba-common-<myversion>.i386.rpm
> 
> Any input would be appreciated.

The .arch seems to be understood by most rpm frontend tools. I don't
know about rpm it self (in a spec file), though.

-- 
lfr
0/0

_______________________________________________
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