Cody A.W. Somerville wrote:
> Unfortunately, the output
> from "dpkg -l" isn't the easiest to machine parse

why? because it's cropping the package names?

if that's the reason, i would rather go with something ugly as this
(which certainly can be improved):

dpkg-query -W -f='${Status} ${Package}\t${Version}\t${Description}\n' |
grep -v "^ " | sed -e 's|install ok installed|ii|g'

> which is why I've
> created a patch to have the output of "dpkg-query -W" which format, by
> default, is "${Package}\t${Version}\n".

the output from dpkg -l is a pseudo standard, that's why any replacement
should imho, in the default case, not provide less information than that.

-- 
Address:        Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
Email:          [email protected]
Internet:       http://people.panthera-systems.net/~daniel-baumann/


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to