App version & installed?
Ralf Mardorf
silver.bullet at zoho.com
Fri Sep 21 09:22:19 UTC 2018
On Fri, 21 Sep 2018 11:01:41 +0200, Oliver Grawert wrote:
>hi,
>Am Freitag, den 21.09.2018, 06:58 +0100 schrieb Grizzly via ubuntu-
>users:
>>
>> i.e.
>> I have Wine installed and working, but "all" the commands I know do
>> not show it
>> as such, the same for VLC and others
>>
>> they do show as Candidates "to be installed"
>
>what does:
>
>dpkg -l | grep wine
>
>show ?
>
>(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:
[weremouse at moonstudio ~]$ dpkg -l | grep 'snapd'
rc snap-confine 2.23.1 amd64 Transitional package for snapd
ii snapd 2.34.2 amd64 Daemon and tooling that enable snap packages
[weremouse at moonstudio ~]$ dpkg -l 'snapd' | grep "ii "
ii snapd 2.34.2 amd64 Daemon and tooling that enable snap packages
Still tricky, if the description should contain ii. We could handle this, too,
but apt seems to be better:
[weremouse at moonstudio ~]$ apt list -qq 'snapd'
snapd/xenial-updates,now 2.34.2 amd64 [installed]
[weremouse at moonstudio ~]$
[weremouse at moonstudio ~]$
[weremouse at moonstudio ~]$
[weremouse at moonstudio ~]$ apt list -qq 'firefox'
firefox/xenial-updates,xenial-security 62.0+build2-0ubuntu0.16.04.5 amd64
[weremouse at moonstudio ~]$ apt list 'firefox' 2>/dev/null | grep '\[installed\]'
[weremouse at moonstudio ~]$ apt list 'snapd' 2>/dev/null | grep '\[installed\]'
snapd/xenial-updates,now 2.34.2 amd64 [installed]
[weremouse at moonstudio ~]$
More information about the ubuntu-users
mailing list