[Bug 1653915] [NEW] dpkg -l "foo*" should print only installed packages

Andrea Bravetti andreabravetti at gmail.com
Wed Jan 4 08:56:41 UTC 2017


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
Foundations Bugs, which is subscribed to dpkg in Ubuntu.
https://bugs.launchpad.net/bugs/1653915

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

Status in dpkg package in Ubuntu:
  New

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 manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/1653915/+subscriptions



More information about the foundations-bugs mailing list