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 want to know where I can find my installed application when I installed it on Ubuntu using package manager.

I installed RabbitMQ and ran locate rabbitmq which gave me following result:

share|improve this question

migrated from Mar 29 '11 at 10:52

This question came from our site for professional and enthusiast programmers.

What application? Some are accesible through commandline, others get an pretty icon in the application menu. Be more specific. – Ragnar123 Mar 29 '11 at 9:59
Do you want to know where the executables and config files reside or do you want to execute it and don't know how? – das_weezul Mar 29 '11 at 10:02
ok!!! i actually want to know that as in windows if i install application i can see it in program files similarly in ubuntu where to locate the installed application...I just installed RabbitMq and want to know where it is residing i need to configur its file – Anupam Gupta Mar 29 '11 at 10:03
@ das_weezul :- yes I want to know all things which are done to my box when i click install from synaptic package manager ...i am a newbie on ubuntu... so any links are welcomed – Anupam Gupta Mar 29 '11 at 10:06
One of the answers suggests the following dpkg-query -c <package_name.deb> You cannot do that to a deb file. I suspect the poster meant to use dpkg-deb with the same params dpkg-deb -c <filename.deb> Which lists the files as expected. – gazhay Oct 17 '14 at 14:17

To see all the files the package installed onto your system, do this:

dpkg-query -L <package_name>

To see the files a .deb file will install

dpkg-deb -c <package_name.deb>

To see the files contained in a package NOT installed, do this once (if you haven't installed apt-file already:

sudo apt-get install apt-file
sudo apt-file update


apt-file list <package_name>

See this question for more

share|improve this answer
Thanks that works – Anupam Gupta Mar 29 '11 at 10:13
As gazhay commented above, dpkg-query -c foo.deb fails. But dpkg-deb -c foo.deb works. – Camille Goudeseune Apr 30 '15 at 20:54
This has to be one of the greatest answers I ever came across. – Donato May 23 '15 at 16:12
Updating apt-file is pain. – sjsam May 30 at 7:23

@drysdam dpkg -L <package_name> might be the best for your immediate problem, but you might like to read the Filesystem Hierarchy Standard, which describes where different types of files live in the filesystem.

It is not definitive; it is just a descriptive account of the way things "mostly" are.

More specific to Ubuntu is the Ubuntu Server Guide, which will describe everything in enough detail. (So many of the other guides gloss over too many of the details, but this should be better.)

share|improve this answer
thanks sarnold ..for providing important link... – Anupam Gupta Mar 29 '11 at 10:22

The answer given by @Gilles is very useful (actually, the answer was improved over time).

Furthermore, I have a tip for the ones that don't want to install any auxiliary package (like the apt-file):

  • Go to;
  • Go to the Search package directories session;
  • Insert your package name in the Keyword field and select Only show exact matches;
  • Select your distribution and click in the Search button.
  • Select the desirable package in the next screen;
  • In the end of page, click in the list of files link next to your architecture name;
  • The next page will show the list of files of your package.

As an example:

share|improve this answer

if you just want a single installed package, you can find the package name

$ apt-cache search rabbitmq

then use dpkg --listfiles

$ dpkg --listfiles librabbitmq-dev
. . . 
share|improve this answer

Use the which command. Sometimes, the output lists a link in which case you can use ls -l on that link to find the original executable.

share|improve this answer
tried which and locate both ..which is not showing any thing and locate is giving me the result as shown in my question but still not able to find where is the file is for my installed Rabbit mq – Anupam Gupta Mar 29 '11 at 10:09

Your Answer


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