Is there a generalised way to find out what package caused the installation of a command?
|
Open a terminal and try the following commands:
eg: Sample output:
You can also obtain detailed status information about coreutils package, enter:
Sample output:
|
|||
|
|
|
From the command name you can use the 'type' and 'dpkg' commands to determine the package which is responsible for their installation. For example to find out which package installed the command 'who' you could do the following commands at a command prompt:
|
|||
|
|
|
there is another one method, maybe a little silly, but faster than previous ones :) just mistype a command and you will get correct command name and package it came from. Sample output:
|
|||||||
|
|
Now for a completely different approach. Go to packages.ubuntu.com and follow your nose. In particular, scroll down to "Search the contents of packages" and enter the file name or system command. |
|||
|
|
|
|||
|
|
|
You can also do it with one line:
For example, I want to know what package contains
And here is the output:
So now I know that ls command, /bin/ls file, comes from coreutils package. |
|||
|
|