For a specific package, can I find out why it is installed?
So, can I see or it's manually installed, or that it is installed as a dependency of another package? Or that it is installed as part of the distro?
A quick solution is to enter the following command in a terminal:
Replace $package with the package's name, and you may need to install the
The following command
lists the other packages installed on your computer that depend directly on $package. You can add the
A quick and short reasoning on why a certain package was installed can be found out by typing the following command in a terminal (
Replace with the name of the package you are interested in. For example, typing
This basically means that the package
However, there is a caveat. I often notice aptitude finds the most plausible explanation for the situation that may not be the actual case, but will nevertheless give you a clue to look further.
In my case,
Finally, you can find out whether a package was installed automatically (meaning decided by the package management system as mandatory from looking at dependencies and recommendations of other packages you asked it to install) by running following command.
This will output a line like below (3rd line of the output) :
For more info run
To find out when a particular package was installed, there are 2 options:
Yes, you can, and it's a pretty obvious command, in fact. Assuming you've aptitude installed, you can open up a Terminal Window ad type:
That should give a list of packages that depend on that specific package. If it's a manually installed package, it will say something like "It wasn't possible to find a reason to install package".
Here's a simple way that doesn't rely on
Open Synaptic and try to remove it.
If a dialog pops up asking you to delete other packages, those are the packages that (recursively) depend upon it.
Again, the packages that would be removed as a result are all those that (recursively) depend on it. (The
You can also use plain
Example : if [ PACKAGE NAME ] is