Hi! On Wed, 2003-05-07 at 15:36:05 +0100, John Allman wrote: > 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
This is (now?) intended behavior, it's documented in the man page for dpkg-query. To list all packages even those that are not installed you have you use a pattern. To load the available file now you also need to use --load-avail in dpkg-query. Thus closing this report. Thanks, Guillem -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

