[Yum] yum list available weird output

Gerry Reno greno at verizon.net
Tue May 5 20:39:05 UTC 2009


Seth Vidal wrote:
>
>
> On Tue, 5 May 2009, Gerry Reno wrote:
>
>> Ok, I am looking at repoquery but some of the totals do not seem to 
>> add up. For example:
>> repoquery -q --pkgnarrow=updates -a | wc -l
>> 498
>>
>> Now I would expect that when I do this:
>> for arch in i386 i586 i686 x86_64; do
>> repoquery -q --pkgnarrow=updates --archlist=$arch | wc -l
>> done
>>
>> that the totals for all the arches would equal the 'all' total. But 
>> they don't. The arches totalled separately add up to more than 100 
>> packages more than the 'all' total. How can that be?
>>
>
> 1. why are you doing each arch separately?
I'm exploring like I do with every new tool. I just thought I'd check 
each arch and then I did the -a 'all' total and when they didn't match I 
thought I'd ask about that.
> 2. what ver of yum-utils is this?
1.1.19-1.fc10
> 3. what is your overall goal for this script?
Nothing specific at the moment. I'm learning what can be done with 
repoquery right now.

Regards,
Gerry



More information about the Yum mailing list