LinuxSir.cn,穿越时空的Linuxsir!

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

[问题]Arch中类似apt-get autoremove的功能

[复制链接]
发表于 2008-9-26 12:36:52 | 显示全部楼层 |阅读模式
有没有检测依赖并自动删除不需要软件包的软件或命令呢?
发表于 2008-9-26 13:19:42 | 显示全部楼层
我是新手,刚装的ARCH.WIKI里有的,是pacman -Scc
回复 支持 反对

使用道具 举报

发表于 2008-9-26 13:58:20 | 显示全部楼层
pacman -Qdt
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-9-26 16:36:40 | 显示全部楼层
Post by jarryson;1887158
pacman -Qdt

对,就是这个。谢谢
回复 支持 反对

使用道具 举报

发表于 2008-9-26 16:39:34 | 显示全部楼层
这个pacman -Qdt 竟然把我的kdebase都干掉了!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-9-26 16:56:00 | 显示全部楼层
Post by jobinson99;1887246
这个pacman -Qdt 竟然把我的kdebase都干掉了!


它不是只列出来吗,有选择的删除,难道pacman -Qdt|cut -d' ' -f1|pacman -Rn?
-d, --deps
           List all packages installed as dependencies. This option can be
           combined with -t for listing real orphans- packages that were
           installed as dependencies but are no longer required by any installed
           package. (-Qdt is equivalent to the pacman 3.0.X -Qe option.)
-t, --unrequired
           Restrict or filter output to packages not required by any currently
           installed package.
回复 支持 反对

使用道具 举报

发表于 2008-9-26 21:18:32 | 显示全部楼层
这玩意太危险了~~~
回复 支持 反对

使用道具 举报

发表于 2008-9-27 01:12:09 | 显示全部楼层
where 安全可靠?
only delete download file .
回复 支持 反对

使用道具 举报

发表于 2008-9-27 01:22:44 | 显示全部楼层
you can cd /usr/var/cache/pacman/pkg
these was your download file .
if you can delete .
回复 支持 反对

使用道具 举报

发表于 2008-9-27 10:08:34 | 显示全部楼层
pacman -Rcu packagename
回复 支持 反对

使用道具 举报

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

本版积分规则

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