App version & installed?
Oliver Grawert
ogra at ubuntu.com
Fri Sep 21 10:42:45 UTC 2018
hi,
Am Freitag, den 21.09.2018, 11:22 +0200 schrieb Ralf Mardorf:
> >
> > (this queries the local dpkg package database directly instead of
> > using
> > the higher level apt one)
> What ever command we will use, to display only the installed package
> and under now condition another package or a package that isn't
> installed, we need to grep, but not as you did, see:
you dont need to grep if you know the actual package name ...
$ dpkg -l snapd
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 snapd 2.34.2 amd64
Daemon and tooling that enable snap packages
there is a difference between the two databases (/var/lib/apt/lists vs.
/var/lib/dpkg/info/), apt is a high level management tool for packages
with its own database while dpkg is a low level package tool only
operating with locally installed deb's (or previously installed ones
that kept files around (i.e. "rc" status).
if someone is confused by the apt output (since this inludes remote
info beyond the local one) and wants to just see if something is
locally installed dpkg might be the better tool, which i tried to point
out here.
ciao
oli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20180921/7d31d138/attachment.sig>
More information about the ubuntu-users
mailing list