Server Fault is a question and answer site for system and network administrators. 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

Is there any standard way to locate installation directories of applications, installed with aptitude on Ubuntu?

share|improve this question
up vote 2 down vote accepted

whereis binary for example:

whereis bash

would produce something similar to:

root@hostname:~# whereis apache2
apache2: /usr/sbin/apache2 /etc/apache2 /usr/lib/apache2 /usr/lib64/apache2 /usr/share/apache2 /usr/share/man/man8/apache2.8.gz

Alternatively as root you could run something similar to this:

updatedb && locate apache
share|improve this answer

Can you clarify what you're asking for?

dpkg -L PACKAGENAME will show every file in PACKAGENAME

whereis APPLICATION will show you the full path of APPLICATION

dpkg -S /usr/full/path/to/file will show which package a file belongs to.

share|improve this answer

which will show you the full filename of a programme.


$ which vim
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.