I noticed an interesting phenomenon and I am looking for an explanation. On my Ubuntu system, dpkg-query
cannot find some uninstalled packages which apt-cache
can find. For instance,
dpkg-query -l libssl-dev
gives me:
dpkg-query: no packages found matching libssl-dev
while:
apt-cache show libssl-dev
finds the package information. At the same time, dpkg-query
can locate other uninstalled packages, e.g. gimp and show their status as uninstalled. Why are some packages not visible to dpkg-query
?
dpkg-query -f '${db:Status-Abbrev}\t${Package}\n' --show gimp libssl-dev
say?un gimp dpkg-query: no packages found matching libssl-dev
, so again, gimp is found, and libssl-dev is not.apt-get remove --purge
), so there are no indications of its existence left that dpkg could find.