Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know how to show the paths where I installed a package with dpkg:

$ dpkg -L gnome

How can I do that with aptitude?

share|improve this question
Why do you want to use aptitude when it's perfectly possible with dpkg? I din't even know it was possible. Thanks for that. – RobinJ Feb 24 '12 at 17:42
@RobinJ dpkg -S (what package does a file or directory belong to?) and apt-file (like dpkg -S and dpkg -L, but also for packages that are not installed) are other useful commands – Lekensteyn Feb 24 '12 at 18:51

dpkg is a lower-level tool that needs to know where files are extracted and such, but aptitude and apt handle packages as a whole (using package names) and therefore don't provide a method for showing filenames.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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