[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#192292: dpkg -l prints only installed packages, not all available



Package: dpkg
Version: 1.10.10
Severity: normal

The man page says dpkg -l with no further arguments returns all packages
in /var/lib/dpkg/available however it appears only installed packages
are being returned

dpkg -l |grep package-name does not find an uninstalled package whereas
dpkg -l package-name
and
grep "Package:.*package-name" /var/lib/dpkg/available
do

more interestingly, 

john@gohan:~$ dpkg -l |grep -v "^ii"
Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
john@gohan:~$

so no packages without installed status returned by dpkg -l

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux gohan 2.4.20 #3 Tue May 6 12:10:13 IST 2003 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages dpkg depends on:
ii  dselect                       1.10.10    a user tool to manage Debian packa
ii  libc6                         2.3.1-17   GNU C Library: Shared libraries an

-- no debconf information




Reply to: