WordPress package
Nils Kassube
kassube at gmx.net
Sun Apr 15 21:28:40 UTC 2007
On Sunday 15 April 2007 22:52, Peter Garrett wrote:
> On Sun, 15 Apr 2007 20:12:17 +0200
>
> Nils Kassube <kassube at gmx.net> wrote:
> > dpkg -l|while read i n r;do apt-cache madison $n|grep
> > universe;done|cut -d\| -f1
>
> I get duplicate lines from the output here - what about something like
Ooops - I didn't see duplicates, but actually I didn't check that. I just
checked several packages if they are really installed.
> for each in $(dpkg --get-selections | grep install | cut -f1) ; do
> apt-cache madison $each | grep universe ; done | cut -d\| -f1 | sort |
> uniq > universe-installed.list
Looks nice.
> "time" reports
> real 5m52.071s
> user 3m26.669s
> sys 2m21.925s
>
> Comparison:
>
> $ time dpkg -l|while read i n r;do apt-cache madison $n|grep
> universe;done|cut -d\| -f1 | sort | uniq > dpkg-universe
>
> real 6m3.550s
> user 3m28.509s
> sys 2m21.753s
> peter at prospero:~ $ diff dpkg-universe universe-installed.list
> peter at prospero:~ $
>
> So it looks like both give the same result ...
>
> There must be a quicker way though :-)
>
> Peter
I think you have too many packages installed :)
Nils
More information about the ubuntu-users
mailing list