This problem reoccurs to me every so often, and neither google nor man pages ever helped me to resolve it. The question is, how can I ask apt-get or his friends (apt-file or apt-cache) to give me a list of files installed by a given package? Say I just installed ivy and I want to find .jar, which must have come with it. locate ivy will return a lot info about kivy and other similarly named packages/files. Same problem with apt-file list. apt-cache show won't be too helpful either -- it gives a lot of info about the package, but none about it's files.

  • Nevermind, I think I just found the answer: it should be dpkg -L PACKAGENAME as in question: superuser.com/questions/82923/…. I find it quite confusing to tell when I should use apt-get, and when I should go for dpkg. Once and for all it's clear to me that it's dpkg in this case. Feb 23, 2014 at 18:46
  • apt is about finding the packages to install (including their dependencies), dpkg knows about the contents of packages.
    – poolie
    Mar 20, 2017 at 17:37

1 Answer 1


After you install a .deb package (regardless of source – apt or local), it's managed by dpkg:

dpkg -L packagename

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.