Linux – How to list the files installed by a deb package

apt-getlinuxUbuntu

I'm an Ubuntu user and I install packages with the apt-get. For example:

sudo apt-get install hadoop-0.20

After I install the package, there will be files in /usr/bin, /usr/lib/hadoop etc. Are there any commands can show out where exactly the package installed its files?

Best Answer

Yes, use the dpkg command like

  dpkg -L hadoop-0.20

The converse question (finding the package providing a given file) is answered with e.g.

  dpkg -S /usr/include/gc/gc.h

Read more about Debian packaging related tools

PS. Ubuntu (and other Linux distributions, eg Mint) is a derivative of Debian.

Related Question