* Dave Carrigan <[EMAIL PROTECTED]> [040130 00:46]:That is correct, the -w flag makes it catch the entire word "install", not *install*.
On Thu, Jan 29, 2004 at 07:58:36PM +0900, Nick Hastings wrote:
No I don't think so, note the "-w" flag. It will only match if the package name _is_ "install".
Also, this will miss held packages.
My apologies you are correct here.
Better would beYes, you'll match "deinstall"
dpkg --get-selections | awk '$2 ~ "install|hold" {print $1}'
Oops, now you will match with "uninstall"...
I think the best way would be dpkg --get-selections \* | egrep -w 'hold|install'
or perhaps this statusI think they are limited to "install", "deinstall", "hold", and "purge", but I could be mistaken.
doesn't exist anymore? Anyone know all possible statuses that can be
reported by dpkg --get-selections?
Nick.Ed
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]