What do the various dpkg flags like 'ii' 'rc' mean?
I regularly require to examine which plans are mounted, and also I make use of the adhering to command :
dpkg -l | grep foo
which offers the list below result
Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Description ii foo <version> <description>
- What does the
- What various other flags exist?
- Just how to read the flags? (due to the fact that the description is fairly difficult, IMO)
The first letter presents what is the predicted standing of the package.
The 2nd letter presents what is the existing standing of the plan.
So as an example :
ii suggests 'It needs to be mounted and also it is mounted' whereas
rc suggests 'It is removed/uninstalled yet it is arrangement documents are still there'
Where to locate this details in the system
You can locate this details out in the head of dpkg - l result, as it is simply a formatting convention :
dpkg -l | head -3
Copied below for reference :
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)
Description of each area
As you can see from the first 3 lines :
First letter - > wanted plan state ("selection state") :
- u ... unidentified
- i ... install
- r ... remove/deinstall
- p ... cleanup (remove consisting of config files)
- h ... hold
Second letter - > existing plan state :
- n ... not - mounted
- i ... mounted
- c ... config - files (just the config files are mounted)
- U ... unpacked
- F ... fifty percent - configured (arrangement fallen short for one reason or another)
- h ... fifty percent - mounted (installment fallen short for one reason or another)
- W ... causes - waited for (plan is awaiting a trigger from an additional plan)
- t ... causes - pending (plan has actually been caused)
Third letter - > mistake state (you generally should not see a 3rd letter, yet a room, rather) :
- R ... reinst - called for (plan damaged, reinstallation called for)