WordPress package
Nils Kassube
kassube at gmx.net
Sun Apr 15 18:12:17 UTC 2007
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. 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.
Nils
More information about the ubuntu-users
mailing list