1 |
not dangerous. only you need to look carefully at what depclean wants to delete. |
2 |
as gentoo says, in some cases it could break dependencies needed by other software and |
3 |
to avoid damage you should run revdep-rebuild, which scans all dependecies and reinstalls |
4 |
them if it finds something is missing. |
5 |
I use both regularly, especially after an emerge --update world and never had any real |
6 |
trouble with it. |
7 |
|
8 |
hope this eases your concerns a bit |
9 |
|
10 |
michael |
11 |
|
12 |
-- |
13 |
Michael Scherer |
14 |
Univ.klinik f. Psychiatrie |
15 |
email: michael.scherer@×××××××××××××.at |
16 |
phone: +43 6991 941 22 54 |
17 |
|
18 |
----- Original Message ----- |
19 |
From: 赵佳晖 |
20 |
To: gentoo-user@l.g.o |
21 |
Sent: Sunday, 22 April, 2012 03:31 |
22 |
Subject: Re: [gentoo-user]How can i remove the xfce clearly? |
23 |
|
24 |
|
25 |
But it seems that the --depclean is a dangerous operate ?? |
26 |
|
27 |
|
28 |
在 2012年4月22日 上午7:15,Florian Philipp <lists@×××××××××××.net>写道: |
29 |
|
30 |
Am 21.04.2012 20:39, schrieb ny6p01@×××××.com: |
31 |
|
32 |
> On Sat, Apr 21, 2012 at 09:45:49AM +0200, Florian Philipp wrote: |
33 |
>> Am 21.04.2012 05:27, schrieb ??????: |
34 |
>>> I just install the xfce a few days ago, But i find i didn't like it . So |
35 |
>>> i want to remove it and install the Gnome . How can i remove the xfce |
36 |
>>> clearly ? |
37 |
>>> |
38 |
>>> -- |
39 |
>>> ???????????????????????? |
40 |
>> |
41 |
>> Gnome and Xfce share many libraries. Therefore it is best to install |
42 |
>> Gnome first, before removing Xfce. Otherwise you will remove libraries |
43 |
>> which you will later re-emerge for Gnome. |
44 |
>> |
45 |
>> Then you need to configure your display manager (kdm, gdm, xdm) to use |
46 |
>> Gnome instead of Xfce. Kdm and Gdm should allow you to do that directly |
47 |
>> on the login screen. |
48 |
>> |
49 |
>> When you are satisfied with Gnome, edit /var/lib/portage/world and |
50 |
>> remove every line containing an Xfce package. Then run `emerge -av |
51 |
>> --depclean` and you are done. |
52 |
>> |
53 |
>> You could continue to remove config files but that is usually not worth |
54 |
>> the trouble. |
55 |
>> |
56 |
>> Hope this helps, |
57 |
>> Florian Philipp |
58 |
>> |
59 |
> |
60 |
> |
61 |
> Do I understand you correctly that it is not necessary to run emerge |
62 |
> -unmerge first before removing the atoms from @world and running emerge |
63 |
> --depclean? |
64 |
> |
65 |
> Terry |
66 |
> |
67 |
|
68 |
|
69 |
Yes. I think it is also mentioned in the gentoo handbook. In fact, you |
70 |
should not use --unmerge because it doesn't check dependencies before |
71 |
removing the package. |
72 |
|
73 |
If you want to delete a package only if no other package depends on it, |
74 |
either remove it from world or use |
75 |
`emerge -av --depclean <package_name>`. |
76 |
The latter has the advantage of also telling you what depends on it. |
77 |
|
78 |
Regards, |
79 |
Florian Philipp |
80 |
|
81 |
|
82 |
|
83 |
|
84 |
|
85 |
|
86 |
|
87 |
-- |
88 |
好好学习,天天向上!!! |