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

Re: files under /boot



On Fri, May 29, 2020 at 06:40:50AM -0400, rhkramer@gmail.com wrote:
> On Thursday, May 28, 2020 09:34:18 PM The Wanderer wrote:
> > What does the following command output?
> > 
> > $ dpkg -l "*4.9.0*" | grep ii
> 
> First I had to figure out (google) to find what the leading ii means,

dpkg -l writes a human-readable report, with a header that tells you
what each letter in each column means.

unicorn:~$ dpkg -l libc6
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  libc6:amd64    2.28-10      amd64        GNU C Library: Shared libraries

Here it is, with the header intact.

The first line of the header  Desired=Unknown/Install/Remove/Purge/Hold
has a vertical line that points to the first column of the output.  What
this means is that if the first column has a "u", it means "Unknown",
and if it has an "i", it means "install", and so on.  Overall, this
first column is telling you the *desired state* of the package -- in
other words, what you told dpkg you wanted.

The second line

Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend

has a diagonal + vertical line that points to the second column.  This
line tells us the *actual* state of the package.  "n" means "not installed",
"i" means "installed", "c" means "conf-files" and so on.

The most common combinations you'll likely see for the first two
columns are:

ii  The package is installed, and that's what you wanted.
hi  The package is installed, and is on hold, because you asked for that.
rc  The package has been removed, but not purged.  Conf files remain.
un  The package is not installed, and you've given no instructions about it.

(People need to learn to read, grumble grumble.)


Reply to: