WordPress package
Florian Diesch
diesch at spamfence.net
Sun Apr 15 01:31:37 UTC 2007
Patton Echols <p.echols at comcast.net> wrote:
> Is it possible to get a list of the things that we have installed _and_
> what repository they come from?
Slow, dirty and not well tested:
========================================================================
#!/bin/sh
dpkg -l |awk '/ii/ {print $2}'|while read pkg; do
apt-cache show $pkg|egrep '^(Package|Section)'|\
sed -es'/^Package: /\t/' \
-es'/^Section: \(.*\)\/.*/ \1/' \
-es'/^Section: .*/ main/'
done|tr -d '\n'|tr '\t' '\n'|sort -k2
========================================================================
Florian
--
<http://www.florian-diesch.de/>
More information about the ubuntu-users
mailing list