This question already has an answer here:

This question clearly explains about how to find all the commands which are provided by a particular installed package.

My question is, how to find(or lists) all the available commands which are provided by a particular package before installing that package via terminal ?

marked as duplicate by Eliah Kagan, Jorge Castro, Eric Carvalho, terdon, Aditya Mar 20 '14 at 11:23

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

You can use apt-file (is not installed by default in Ubuntu). Before of the first use, run apt-file update to fetch contents files from apt-sources.

Here is an example:

apt-file -F list geany | egrep -w "(s|)bin"
geany: /usr/bin/geany

And an example with a package with more commands:

apt-file -F list mesa-utils | egrep -w "(s|)bin"
mesa-utils: /usr/bin/glxdemo
mesa-utils: /usr/bin/glxgears
mesa-utils: /usr/bin/glxheads
mesa-utils: /usr/bin/glxinfo

In this case the commands are, evidently: glxdemo, glxgears, glxheads and glxinfo.

  • apt-file -F list geany | grep -w bin displays nothing. – Avinash Raj Mar 19 '14 at 14:32
  • @AvinashRaj I just edited my answer. – Radu Rădeanu Mar 19 '14 at 14:37

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