[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Interpreting aptitude and "dpkg -l" output



Felix Karpfen wrote:
The following concrete examples illustrates my query:

Aptitude:
----------
[root@carrot root]# aptitude search libpng12*
i A libpng10-0          - PNG library, older version - runtime
p   libpng10-dev      - PNG library, older version - development
i A libpng12-0          - PNG library - runtime
v   libpng12-0-dev    -
p   libpng12-dev       - PNG library - development


Fire up aptitude in interactive mode and hit '?' to read the help, it's not that long and the package state abbreviations are explained at the end[for some reason A isn't listed, it means automatically installed]. Additionally, /usr/share/aptitude/README is a fairly comprehensive users guide[and has a table of contents so you can just search for the section number in the table of contents].

dpkg -l
---------
[root@carrot root]# dpkg -l libpng12*
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)

You answer is right here, the first column is Desired [state], the second is [current] Status, the third is Errors. The codes are abbreviated by their initial letter. So 'ii ' is desired installed and actually installed with no errors.

||/ Name                      Version                   Description
+++-=========================-=========================
ii libpng12-0 1.2.8rel-1 PNG library - runtime un libpng12-0-dev <none> (no description available) pn libpng12-dev <none> (no description available)

I am certain that the man pages have a full explanation of the codes (i, A, p ,v, un and pn). But I need to know the keywords that will get me to the correct <section|paragraph> with a simple "search" command.

All advice will be gratefully received.

Felix Karpfen

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: