3

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 ?

0

1 Answer 1

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.

2
  • apt-file -F list geany | grep -w bin displays nothing. Mar 19, 2014 at 14:32
  • @AvinashRaj I just edited my answer. Mar 19, 2014 at 14:37

Not the answer you're looking for? Browse other questions tagged .