LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 944|回复: 10

怎么清除未emerge 成功的软件

[复制链接]
发表于 2009-9-30 04:55:59 | 显示全部楼层 |阅读模式
怎么清除未emerge 成功的软件,我发现有很多没有安装成功的软件。但又装了一些。有个文件未成功。我想清掉这些依赖包什么的。怎么做呢。


比如说

emerge ww-client/chromium

>>> Installing (3 of 3) www-client/chromium-4.0.212.0_p26805
* checking 519 files for package collisions
* This package will overwrite one or more files that may belong to other
* packages (see list below). You can use a command such as `portageq
* owners / <filename>` to identify the installed package that owns a
* file. If portageq reports that only one package owns a file then do
* NOT file a bug report. A bug report is only useful if it identifies at
* least two or more packages that are known to install the same file(s).
* If a collision occurs and you can not explain where the file came from
* then you should simply ignore the collision since there is not enough
* information to determine if a real problem exists. Please do NOT file
* a bug report at http://bugs.gentoo.org unless you report exactly which
* two packages install the same file(s). Once again, please do NOT file
* a bug report unless you have completely understood the above message.
*
* Detected file collision(s):
*
*     /usr/share/applications/chromium-chromium.desktop
*
* Searching all installed packages for file collisions...
*
* Press Ctrl-C to Stop
*
* games-action/chromium-0.9.13.3
*     /usr/share/applications/chromium-chromium.desktop
*
* Package 'www-client/chromium-4.0.212.0_p26805' NOT merged due to file
* collisions. If necessary, refer to your elog messages for the whole
* content of the above message.

这个失败了。

Installing (1 of 3) Installing (2 of 3) 又成功了

我emerge -C ww-client/chromium 又不行。

还请帮助。
谢谢
发表于 2009-9-30 07:03:54 | 显示全部楼层
emerge --depclean
回复 支持 反对

使用道具 举报

发表于 2009-9-30 10:09:57 | 显示全部楼层
据说portage-2.2中有个特性会记录这样的依赖, 然后可以删除, 没用过~.~
回复 支持 反对

使用道具 举报

发表于 2009-9-30 10:14:39 | 显示全部楼层
depclean
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-9-30 18:39:32 | 显示全部楼层
Post by zhllg;2031873
depclean



我只想对某一个软件.
你那样.好像把有些我不想删的就KILL 了...

 我没有试过.不知道.说得对不对..
还请老大指点....
回复 支持 反对

使用道具 举报

发表于 2009-9-30 21:39:40 | 显示全部楼层
不想删的查查在不在/var/lib/portage/world里
不在的话加进去
然后再--depclean
回复 支持 反对

使用道具 举报

发表于 2009-9-30 21:43:53 | 显示全部楼层
1 不用把幫助和謝謝放中間加粗加紅,來這問問題不會不幫。不幫就說明大家不知道,不是不幫你。這裡人都還是好人……
2 從你這個報告來看,我沒有覺得你的chromium安裝失敗了。這個問題比較容易發生,發生的原因可能是原來有個文件沒有刪除之類的。程序包算是安裝正確了。所以你不用太擔心。
3 想把依賴包清了也就只有depclean一個方法了。如果你還有更高的要求,你可以手動刪除。比如把depclean的結果放在一個文件里:
  1. emerge --depclean > 1.txt
复制代码

然後再根據1.txt里的內容一個一個判斷。其實emerge --depclean還算比較安全,前提是你在之前剛進行過emerge -DNu world system。

最後,不用謝~~~
回复 支持 反对

使用道具 举报

发表于 2009-9-30 23:41:59 | 显示全部楼层
/var/log/emerge.log自己找呗。。。。
ps udept不错
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-10-1 00:00:10 | 显示全部楼层
谢谢大家的回复

Post by 亞利艾爾;2032101
前提是你在之前剛進行過emerge -DNu world system。

最後,不用謝~~~

你这样说我还有点害怕了(你的意思是必须emerge -DNu world/system)。那我还敢哟,装系统装怕了。
回复 支持 反对

使用道具 举报

发表于 2009-10-1 01:06:55 | 显示全部楼层
怕的話就emerge --depclean -p >1.txt 看看,然後手動卸。這個算是在時間和精力上比較劃來的。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表