I just installed a rpm using the following command:

yum localinstall ./FoxitReader-1.1-0.fc9.i386.rpm 

Now, this did the trick and I could launch the app using:

FoxitReader &

What if FoxitReader failed to launch the app and the name was something else. How could I find out what the name of launcher file could be that just got installed?


I usually list out the contents of the RPM and filter it using /bin/. The files in that directory are executable.

$ rpm -ql ImageMagick | grep /bin/
  • I am getting package FoxitReader-1.1-0.fc9.i386.rpm is not installed Is that because I used yum localinstall to do the install ? – Rajeshwar Oct 20 '14 at 5:22
  • 1
    rpm -ql FoxitReader | grep bin/ - don't use the full filename of the RPM. – garethTheRed Oct 20 '14 at 5:32
  • Thanks could you tell me why we did'nt use the full name of the rpm file ? – Rajeshwar Oct 20 '14 at 5:51
  • 1
    Because different options to the rpm command have different semantics. Some expect the name of an installed package, others that of a physical file. – tripleee Oct 20 '14 at 8:29
  • You can use rpm -qlp FoxitReader-1.1-0.fc9.i386.rpm to list the files in an RPM, rpm -qlf /usr/share/misc/magic to find the other files from an installed package, rpm -qla for all installed files, etc. – deltab Oct 20 '14 at 21:59

The same for Debian; for an installed package,

dpkg -L <packagename> | grep -F /bin/

dpkg -L lists out the package's contents (basically prints /var/lib/dpkg/info/<packagename>.list) and the grep picks out any file paths containing /bin/.

For a deb file which you have not yet installed,

dpkg-deb -c path/to/filename.deb | grep -F /bin/

For an unfamiliar package, you usually also want to examine /usr/share/doc/<packagename>/README.Debian and if the directory contains other useful stuff, such as a NEWS file or an examples or contrib subdirectory, look at those, too.

  • 2
    dpkg -S searches packages containing that name. It just happens that packages usually contain a file matching its name. You really want dpkg -L – Ángel Oct 20 '14 at 11:36

As several others already have stated, look for "/bin" in the packages file list.

Here's Gentoo

$ equery f firefox | grep bin

equery is part of the package gentoolkit.



rpm -qlp package.rpm

command you can list files inside a rpm file. Executables probably will be in some bin folder. So:

rpm -qlp package.rpm | grep bin 

can work too.

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.