Where Are Application Details Saved
Where is package details stored if the package is not listed in
On this DPKG module page, it says to use
dpkg -p wget to show the information about an installed package.
Here is the output on a newly installed Ubuntu 18.04...
[email protected]:~$ dpkg -l | grep wget ii wget 1.19.4-1ubuntu2.2 amd64 retrieves files from the web [email protected]:~$ dpkg -L wget /. /etc /etc/wgetrc /usr /usr/bin /usr/bin/wget /usr/share /usr/share/doc /usr/share/doc/wget /usr/share/doc/wget/AUTHORS /usr/share/doc/wget/MAILING-LIST /usr/share/doc/wget/NEWS.gz /usr/share/doc/wget/README /usr/share/doc/wget/changelog.Debian.gz /usr/share/doc/wget/copyright /usr/share/info /usr/share/info/wget.info.gz /usr/share/man /usr/share/man/man1 /usr/share/man/man1/wget.1.gz [email protected]:~$ dpkg -p wget dpkg-query: package 'wget' is not available Use dpkg --info (= dpkg-deb --info) to examine archive files, and dpkg --contents (= dpkg-deb --contents) to list their contents. [email protected]:~$ apt-cache show wget Package: wget Architecture: amd64 Version: 1.19.4-1ubuntu2.2 Multi-Arch: foreign Priority: standard Section: web Origin: Ubuntu Maintainer: Ubuntu Developers <[email protected]> Original-Maintainer: Noël Köthe <[email protected]> Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 932 ...(I trimmed off the rest of the output details to save space)...
When I look in
man dpkg, I find this...
-p, --print-avail package-name... Display details about package-name, as found in /var/lib/dpkg/available. Users of APT-based frontends should use apt-cache show package-name instead.
When I search
/var/lib/dpkg/available, there is nothing listed for
wget. If I run
dpkg -p <package> against a package listed in
/var/lib/dpkg/available is does return details.
So since the package is obviously installed, I ran
apt-cache show wget to find the details and it returned details. So obviously,
apt-cache show is pulling from somewhere else.
As a result, I decided to read the manual at
man apt-cache. It has this...
show pkg... show performs a function similar to dpkg --print-avail; it displays the package records for the named packages.
While the action is obviously similar, it is not exactly the same. And I am back at to where I started.