apt-get和aptitude不能混用是谬误!
debian吧
全部回复
仅看楼主
level 9
chunghe 楼主
DpkgBot说的,不是我说的。[瞌睡]
First I want to make it clear that you can use both and mix them without problems. It used to be annoying when apt-get did not track which packages were automatically installed while aptitude did, but now that both packages share this list, there’s no reason to avoid switching back and forth.
2012年10月20日 07点10分 1
level 9
chunghe 楼主
对话实录:
Aheapt myths
dpkg Myths about APT never seem to die, the principal one being you can't mix using different APT front-ends like apt-get and aptitude. This is false. If you need further convincing, see http://tinyurl点com/3g4d4d9 and http://algebraicthunk点net/~dburrows/blog/entry/apt-system-diagram/ . See also <why aptitude> and <why not aptitude> for real reasons to choose one over the other.
2012年10月20日 07点10分 3
level 9
chunghe 楼主
把myths理解成谬误,现在想想好像稍有不妥。唉!是时候好好补补外语了。(突然觉得自己水得越多,越显得自己的水平渣渣[拍砖],当前需要恶补的绝不仅仅是外语[揉脸]。)
2012年10月20日 14点10分 4
level 13
[揉脸]

2012年10月21日 04点10分 5
怎么写的 这么好?
2012年10月21日 11点10分
听说贴吧积分出了新规则,发图有积分,所以以后全部用图片回复吧。[揉脸]
2012年10月21日 11点10分
level 9
chunghe 楼主
这个问题我至今还没完全搞明白,现在知道的是:用apt-get安装的软件包可以用aptitude卸载,反过来也成立,但有的时候(其实是大多数情况下)卸载的时候,因依赖而一起装上的包不会被自动清除,如果是aptitude卸载的,运行apt-get autoremove是没有用的,aptitude -f install可能可以帮上忙(下面这个实验里是可以的,不知道该结果是否适用于每个软件)。如果是用apt-get 卸载,apt-get autoremove就有用了。一个大概的结论是:安装的时候两者可以随便挑,但卸载以及后续的清理和依赖关系修复,用哪个卸载的,只能继续用那个。
sudo aptitude install chromium-browser chromium-browser-l10n
下列“新”软件包将被安装。
chromium-browser chromium-browser-inspector{a} chromium-browser-l10n
libglewmx1.5{a} libv8-2.2.24{a}
sudo aptitude purge chromium-browser chromium-browser-l10n
下列软件包将被“删除”:
chromium-browser{p} chromium-browser-l10n{p}
sudo apt-get autoremove
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
sudo aptitude -f install
下列软件包将被“删除”:
chromium-browser-inspector{u} libglewmx1.5{u} libv8-2.2.24{u}
0 个软件包被升级,新安装 0 个,3 个将被删除, 同时 0 个将不升级。
2012年10月23日 07点10分 6
1