dpkg -l "foo*" should print only installed packages

Bug #1653915 reported by Andrea Bravetti
6
This bug affects 1 person
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://it.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1.18.4ubuntu1 500
        500 http://it.archive.ubuntu.com/ubuntu xenial/main amd64 Packages

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

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.