Is there any standard way to locate installation directories of applications, installed with aptitude on Ubuntu?
Asked
Active
Viewed 129 times
3 Answers
8
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.
![](../../users/profiles/3562.webp)
Aaron K.
- 464
- 2
- 6
2
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
![](../../users/profiles/914.webp)
Adam Gibbins
- 7,147
- 2
- 28
- 42
0
which
will show you the full filename of a programme.
eg:
$ which vim
/usr/bin/vim
![](../../users/profiles/8950.webp)
Amandasaurus
- 30,211
- 62
- 184
- 246