Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 ?

share|improve this question

marked as duplicate by Eliah Kagan, Jorge Castro, Eric Carvalho, terdon, Aditya Mar 20 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.

add comment

1 Answer 1

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.

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

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