On Fri, Feb 02, 2007 at 11:59:32AM -0600, Robert Citek wrote:
> David Dooling wrote:
> > On a Debian system, the above will print out some packages that are
> > not installed, e.g., those that have been removed.  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

Did this not show up on yours version or mine?  It seems like it
should have shown up on mine since the second character is an ``i''.

> 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?

It means that it is marked for purge (remove package and config
files), but it has not been purged yet.  If you were to run

  # dpkg -r --purge --pending

Then it would get removed.  This is how tools like apt-get, dselect,
aptitude, and synaptic work.  Setting selections then use --pending.
That is how they are all able to be stateful, even between different
apt front ends.

> Just in case, I reset the state to Install:
> 
> $ echo laptop-detect install | sudo dpkg --set-selections

Nice.

-- 
David Dooling
 
_______________________________________________
CWE-LUG mailing list
[email protected]
http://www.cwelug.org/
http://www.cwelug.org/archives/
http://www.cwelug.org/mailinglist/

Reply via email to