|

楼主 |
发表于 2012-2-21 11:27:12
|
显示全部楼层
Post by forrestxz;2160409
我先申明,我还是处于新手阶段。
你的问题是这样的。假如你是装了gentoo(我理解中安装正常的gentoo)。那么你就有emerge 这个工具(或者eix)。
比如参考gentoo官网
http://www.gentoo.org/proj/en/desktop/kde/kde4-guide.xml
这个网页时讲如何升级kde,但可以作为你要删除kde的参考,可以参考网页部分删除kde
Cleaning Up KDE
In order to minimize issues, it is best to begin with a clean environment. This is recommended for the following cases:
Moving from +kdeprefix to -kdeprefix (and vice versa)
Downgrading KDE (eg. from snapshots/live ebuilds to the Portage version)
Fully upgrading from KDE 3 to KDE 4 (and vice versa)
Moving from an old overlay
A possible way of completely removing an old KDE installation in this case is:
Code Listing 6.2: Unmerging command
# emerge -ac kde-base/kdelibs $(qlist -IC 'kde-base/*') \
$(for name in $(qlist -IC|grep -v '^kde-base/') ; do ( qdepends -C $name | grep -q kdelibs ) && echo $name ; done)
Note that this will remove not just kde but also all other packages depending on it, as e.g. libreoffice[kde].
Using portage-2.2 you can also do the following:
Code Listing 6.3: Unmerging command using sets (i.e. portage-2.2)
# emerge -C @kde-4.X @kdebase-4.X @kde-3.5(using the typical sets)
As a final step you should remove any old overlay so that there are no conflicts with the KDE ebuilds. You should remove the old unmask and/or keyword data, too.
Note: Don't forget to run emerge --depclean in order to uninstall any now unneeded dependencies.
真,,乱...... |
|