I ran the following command successfully

dpkg -i library.deb

Where can I find where this file was installed?

2 Answers 2


If you are asking where the deb package goes: /var/cache/apt/archives.

If you are asking where the files in the deb package get installed to, then do:

dpkg -L library
  • 1
    That's right. dpkg -L shows the list of files if the package is installed. To examinate it before install use dpkg --contents library.deb
    – andrade
    Jan 31, 2013 at 19:01
  • 3
    dpkg -L takes the package name, not the deb file name. So should be dpkg -L library
    – UpTheCreek
    Nov 12, 2020 at 15:28
  • to get the package name run dpkg --info library.deb it will show next to "Package:"
    – Omar
    Apr 13, 2021 at 16:29
dpkg -L library

(Although, since this isn't a programming related question, it should go on superuser.com or linux.stackexchange.com instead of here.)

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.