Public bug reported:

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

** Affects: dpkg (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1653915

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/1653915/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to