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

Re: querying for i386 versus x86_64 versions



In regard to: Re: querying for i386 versus x86_64 versions, Dan Hollis said...:

On Tue, 14 Mar 2006, Luciano Miguel Ferreira Rocha wrote:
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

Would be nice to have a standard extended format for -q, eg

  rpm -qa --qf '%{name}-%{version}-%{release}.%{arch}\n'

rpm has popt support built in (and deeply intertwined).  You could easily
create a popt option to do exactly that.  Or you could go the shell route
and create an alias or function that does what you need.

If you write the popt alias, be sure you share it with the list.  ;-)

Tim
--
Tim Mooney                              mooney dogbert cc ndsu NoDak edu
Information Technology Services         (701) 231-1076 (Voice)
Room 242-J6, IACC Building              (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164


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