You are here

Finding which package provides a command

Suppose a command is not available in the system and we need to install it. How do we find a suitable package that provide this command? In Debian or Ubuntu we can simply run the following command:

	$ apt-file search <command name>
If apt-file is not installed in the system, simply run:

	# apt-get install apt-file
as root.
For example:
If we need the command exo-preferred-application we can simply run:

	$ apt-file search exo-preferred-application
and get

	exo-utils: /usr/bin/exo-preferred-applications
	exo-utils: /usr/share/applications/exo-preferred-applications.desktop
	exo-utils: /usr/share/man/man1/exo-preferred-applications.1.gz
even if exo-utils package is not installed in the system.
Furthere information (before installing exo-utils) can be found in Ubuntu Manpage or in index — Debian Manpages.