Oops, i obviously didn't read his mail properly - it does specify the arch.
On 12/4/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Apart from packages with hyphens, which that queryformat string
> handles, you may also want to look out for 32 and 64 bit packages
> which could leave you with what looks like two duplicate names in your
> rpm list, unless you also specify the architecture in the queryformat.
>
> On 12/4/08, Michael Clark <[EMAIL PROTECTED]> wrote:
>> Cheng Renquan wrote:
>>> On Tue, Dec 2, 2008 at 11:23 AM, Michael Clark <[EMAIL PROTECTED]>
>>> wrote:
>>>
>>>> Eugene Teo wrote:
>>>> I have ended up using the following (I was just running it when I
>>>> received
>>>> your mail):
>>>>
>>>> machine A:
>>>> yum list installed | awk '{ print $1; }' > package.list
>>>>
>>>
>>> Inspired by Fedora 10 Release Notes, rpm -q can accept an
>>> "queryformat" parameter, so
>>>
>>> rpm -qa --queryformat "%{NAME}.%{ARCH}\n' > package.list
>>>
>>> also work on machine A, which doesn't need a text parser.
>>>
>>
>> Thanks! That's pretty much what I wanted and I'm sure this approach will
>> come in handy next time.
>>
>>
>> _______________________________________________
>> Slugnet mailing list
>> [email protected]
>> http://wiki.lugs.org.sg/LugsMailingListFaq
>> http://www.lugs.org.sg/mailman/listinfo/slugnet
>>
>
> --
> Sent from my mobile device
>
--
Sent from my mobile device
_______________________________________________
Slugnet mailing list
[email protected]
http://wiki.lugs.org.sg/LugsMailingListFaq
http://www.lugs.org.sg/mailman/listinfo/slugnet