WordPress package

Derek Broughton news at pointerstop.ca
Sun Apr 15 20:22:14 UTC 2007


Nils Kassube wrote:

> On Sunday 15 April 2007 04:00, Derek Broughton wrote:
>> Patton Echols wrote:
>> > Is it possible to get a list of the things that we have installed
>> > _and_ what repository they come from?
>>
>> Good question, and not afaik, simple.  You could use "apt-cache
>> pkgnames --installed" to get a list of all installed programs, and
>> then "apt-cache madison <package> | grep universe" for each one will
>> show the ones that are in universe.  I guess you could script that (I
>> guess I could if I practiced more...)
> 
> That looks interesting, but unfortunately it doesn't do the trick,
> i.e. there are more packages listed than are actually installed. 

!!!  Well, that sure looks like a bug.  You're absolutely right.  How
can --installed not show just the installed packages!

> The 
> culprit is your first command. Try this one:
> 
> dpkg -l|while read i n r;do apt-cache madison $n|grep universe;done|cut
> -d\| -f1
> 
> It seems to me as if it works, but maybe i missed somthing.

It should work - I believe apt-cache gets its lists faster, but it's not as
if this is something you need to do very often.
-- 
derek





More information about the ubuntu-users mailing list