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?
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:
or, if you are only interested in the ultimate cause:
Replace $package with the package's name, and you may need to install the
aptitude
package first.Here is output you might get for
aptitude why aspell --show-summary
For more detail you would run
aptitude why aspell
. You can read the example output, below, as follows: "You manually installedinkscape
, which requireslibgtkspell
, which requireslibenchantic2a
, which requiresaspell
". (i
markers indicate installed packages;A
markers indicate automatically installed packages.)Finally, the following command
lists the other packages installed on your computer that depend directly on $package. You can add the
--recurse
option to list all packages that depend directly or indirectly on it.A quick and short reasoning on why a certain package was installed can be found out by typing the following command in a terminal (
Applications -> Accessories -> Terminal
) :Replace with the name of the package you are interested in. For example, typing
aptitude why libgoo-canvas-perl
outputs the following :This basically means that the package
shutter
in this case has suggestedlibgoo-canvas-perl
be installed. By then typingaptitude why shutter
I can walk up the dependency chain.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,
shutter
suggestslibgoo-canvas-perl
- however, suggested packages are not automatically installed by default. Nevertheless, it jogs my memory of the "experience" with not being able to edit screenshots withshutter
which led me to manually installligbgoo-canvas-perl
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
info aptitude
(in a terminal) or visit the Aptitude wiki pageTo find out when a particular package was installed, there are 2 options:
Install
(mind the case) to list all entries regarding installation. However, this will only show the packages installed using SynapticRun the following command in a terminal. This will search dpkg logs for installation history entries. However, there is maximum limit of how much of these logs are retained, so if the package you are looking for was installed a long time ago, you may not find it. More details here
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
aptitude
, which 10.10 doesn't ship by default anymore.Graphically
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.
From terminal
Again, the packages that would be removed as a result are all those that (recursively) depend on it. (The
-s
parameter tellsapt-get
to not actually remove the package.)