1 |
On Friday 21 July 2006 12:50, Enrico Weigelt wrote: |
2 |
> Is there any quick command for removing packages that are no |
3 |
> longer in world or one of their dependencies ? |
4 |
|
5 |
From `man emerge`. Use with care and always investigate with --pretend first. |
6 |
|
7 |
--depclean |
8 |
Determines all packages installed on the system that have no explicit reason |
9 |
for being there. emerge generates a list of packages which it expects to be |
10 |
installed by checking the system package list and the world file. It then |
11 |
compares that list to the list of packages which are actually installed; the |
12 |
differences are listed as unnecessary packages and then unmerged after a |
13 |
short timeout. WARNING: Removing some packages may cause packages which |
14 |
link to the removed package to stop working and complain about missing |
15 |
libraries. Re-emerge the complaining package to fix this issue. Note that |
16 |
changes in USE flags can drastically affect the output of --depclean. |
17 |
|
18 |
> AFAIK, emerge -C kills the packages, no matter if someone depends |
19 |
> on it :( |
20 |
|
21 |
Correct. |
22 |
|
23 |
-- |
24 |
Bo Andresen |