How can I get a list of commands that have been installed with a particular package?
For example, if I install Chromium, what should type now? Or if I install moreutils
, how do I know which commands have been installed?
How can I get a list of commands that have been installed with a particular package?
For example, if I install Chromium, what should type now? Or if I install moreutils
, how do I know which commands have been installed?
Short answer:
Long answer:
To get a list of all files installed in a package (say
moreutils
), run this command:Now, all we need to do is filter out the ones that are executable files in the path. In general, commands are installed to
/bin
,/sbin
,/usr/bin
and/usr/sbin
, so we can simply match those patterns:If you want something that's easier to memorise, but not completely accurate, just filter out lines with
bin/
instead:So, in this example, I have discovered these commands:
isutf8
,pee
,errno
, etc.Some packages don't install commands into the path, but do install an icon for the GUI app. If you want to find the command that launches the application, you will need to find the installed
.desktop
file, and look at the line beginning withExec=
. For example:So in this example, I have discovered that I should run
/opt/WorldOfGoo/WorldOfGoo
to launch World Of Goo from the terminal.