LinuxSir.cn,穿越时空的Linuxsir!

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

软件卸载

[复制链接]
发表于 2006-12-21 11:14:17 | 显示全部楼层 |阅读模式
我想卸载一个软件,同时想卸载与它相关而其它软件又不用的软件,emerge的参数怎么搞?
发表于 2006-12-21 12:15:21 | 显示全部楼层
emerge -C xxx
emerge --depclean
revdep-rebuild
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-21 12:50:15 | 显示全部楼层
Post by qeming
emerge -C xxx
emerge --depclean
revdep-rebuild


在man emerge中对--depclean的描述是这样子的
       --depclean
              Determines  all  packages  installed on the system that have no explicit reason for being there.  emerge generates a list of
              packages which it expects to be installed by checking the system package list and the world file.   It  then  compares  that
              list  to  the  list  of  packages  which are actually installed; the differences are listed as unnecessary packages and then
              unmerged after a short timeout.  WARNING: Removing some packages may cause packages which link to  the  removed  package  to
              stop  working  and  complain  about  missing  libraries.   Re-emerge  the  complaining  package to fix this issue.  Also see
              --with-bdeps for behavior with respect to build time dependencies that are not strictly required.


也就是说,这不是只针对一个包进行卸载,而是真对system和world进行的依赖清除,这个比较危险呀...会不会造成很多问题,毕竟,以前卸载过那些包自己也不太清楚了
在做上面的东西之前我先:
DongQ_Lap portage # emerge --update --newuse --deep world
Calculating world dependencies /Traceback (most recent call last):
  File "/usr/bin/emerge", line 4856, in ?
    retval = emerge_main()
  File "/usr/bin/emerge", line 4851, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/bin/emerge", line 4179, in action_build
    if not mydepgraph.xcreate(myaction):
  File "/usr/bin/emerge", line 1831, in xcreate
    if not self.validate_blockers():
  File "/usr/bin/emerge", line 1542, in validate_blockers
    slot_atom = "%s:%s" % (portage.dep_getkey(mycpv),
  File "/usr/lib/portage/pym/portage.py", line 4461, in aux_get
    raise KeyError(mycpv)
KeyError: 'net-im/gaim-1.5.0'

我是将
>=net-im/gaim-2.0.0_beta1
x11-plugins/gaim-libnotify
>=x11-plugins/gaim-encryption-3.0_beta1
放在unmask中了,然后不能更新整个系统了...

这个怎么搞
回复 支持 反对

使用道具 举报

发表于 2006-12-21 13:28:02 | 显示全部楼层
所以--depclean要和-p合用
回复 支持 反对

使用道具 举报

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

本版积分规则

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