David Dooling wrote:
> On a Debian system, the above will print out some packages that are
> not installed, e.g., those that have been remove. To select only
> those that are installed, try:
>
> $ dpkg -l | awk '/^.i/ { print $2 }'
Nice use of awk, David.
When I compared your method of generating a list to mine I discovered we
differed by one package, which I narrowed do to this one:
Desired=Unknown/Install/Remove/Purge/Hold
|Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
uppercase=bad)
||/ Name Version
Description
+++-======================================-=========================================-============================================
pi laptop-detect 0.12.1-ubuntu2
attempt to detect a laptop
Why is it pi instead of ii? I assume that p=Purge and i=Installed. But
what does that mean to be in the Purge state with an Installed status?
Just in case, I reset the state to Install:
$ echo laptop-detect install | sudo dpkg --set-selections
Regards,
- Robert
_______________________________________________
CWE-LUG mailing list
[email protected]
http://www.cwelug.org/
http://www.cwelug.org/archives/
http://www.cwelug.org/mailinglist/