WordPress package

Tony Arnold tony.arnold at manchester.ac.uk
Sun Apr 15 21:51:46 UTC 2007



Nils Kassube wrote:
> 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

How about this as an alternative. It invokes apt-cache once!

 apt-cache madison `dpkg --get-selections | grep install | cut -f 1` |
grep 'edgy/universe Packages' | cut -d\| -f 1 > universe-installed.list

and there should not be any duplicates. It's not version independent
unfortunately.

Just my 2 pen'orth.

Regards,
Tony.
-- 
Tony Arnold, IT Security Coordinator, University of Manchester,
IT Services Division, Kilburn Building, Oxford Road, Manchester M13 9PL.
T: +44 (0)161 275 6093, F: +44 (0)870 136 1004, M: +44 (0)773 330 0039
E: tony.arnold at manchester.ac.uk, H: http://www.man.ac.uk/Tony.Arnold




More information about the ubuntu-users mailing list