dpkg -l "foo*" should print only installed packages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dpkg (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
sibilla ~ # lsb_release -rd
Description: Ubuntu 16.04.1 LTS
Release: 16.04
sibilla ~ # apt-cache policy dpkg
dpkg:
Installato: 1.18.4ubuntu1.1
Candidato: 1.18.4ubuntu1.1
Tabella versione:
*** 1.18.4ubuntu1.1 500
500 http://
100 /var/lib/
1.18.4ubuntu1 500
500 http://
From the manual:
To list installed packages related to the editor vi(1) (note that dpkg-query does not load the available file anymore by default, and the dpkg-query --load-avail option should be used instead for that):
dpkg -l '*vi*'
While "dpkg -l" without package name show only installed packages "dpkg -l foo*" show a list of installed and not installed (available) packages.
This bug may be related to #83734 but it's not the same problem.
sibilla ~ # dpkg -l "dpkg*"
ii dpkg 1.18.4ubuntu1.1 amd64 Debian package management system
un dpkg-cross <nessuna> <nessuna> (nessuna descrizione disponibile)
ii dpkg-dev 1.18.4ubuntu1.1 all Debian package development tools
It should be like this since dpkg-cross is available and not installed:
sibilla ~ # dpkg -l "dpkg*"
ii dpkg 1.18.4ubuntu1.1 amd64 Debian package management system
ii dpkg-dev 1.18.4ubuntu1.1 all Debian package development tools