<font color="#6633ff">是这样的. 就命令行的功能而言aptitude更强大.</font><div><font color="#6633ff">用aptitude forbid-version禁用的版本如果用apt-get upgrade又会升回去.</font></div><div><font color="#6633ff">此外aptitude safe-upgrade 比apt-get upgrade要聪明, "安全"的的软件包增减也被包括在这种方式的更新里了, 而用apt-get即使是linux-generic更新也会被ignore,而如果用apt-get dist-upgrade, 可能会造成其他软件的灾难(某一个组件更新(</font><span class="Apple-style-span" style="color: rgb(102, 51, 255); ">如libgtk)</span><span class="Apple-style-span" style="color: rgb(102, 51, 255); ">带来大片依赖软件被卸载).</span></div>

<meta http-equiv="content-type" content="text/html; charset=utf-8"><div><font class="Apple-style-span" color="#6633ff">此外上面提到的downgrade, 其实在某些时候是很必要的, 比如syslinux和usb-creator, 在不同u盘/不同映像上的兼容性不同, 导致我不得不常常把它和几个相关的组件/依赖包(如syslinux-common)一起升级降级/安装删除, 用aptitude可以比较方便的做到这一点.</font></div>

<div><br>Felix Yan<br><span style="font-size:x-small">Twitter: @felixonmars</span><br><span style="font-size:x-small">Blog: <a href="http://felixcat.net" target="_blank">http://felixcat.net</a></span><br>
<br><br><div class="gmail_quote">2011/2/14 RLP <span dir="ltr"><<a href="mailto:rhyslpratt@yahoo.com.cn">rhyslpratt@yahoo.com.cn</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

从我的使用经验来说,在aptitude或者apt-get中选择一个使用,不要交叉使用。<br>
我曾经搜索过,大致结论也是如此。<br>
我曾经遇到问题,所以后来就不用aptitude了。<br>
<div><div></div><div class="h5"><br>
On 2011-02-14 Xilin Sun <<a href="mailto:s.sn.giraffe@gmail.com">s.sn.giraffe@gmail.com</a>> wrote:<br>
<br>
>aptitude是命令行下的synaptic。功能基本一样。另外aptitude 也可以sudo aptitude install ...<br>
>像apt-get一样用<br>
><br>
>apt-get是aptitude和synaptic的后端。<br>
><br>
>2011/2/14 刘洋 <<a href="mailto:amankwah7@gmail.com">amankwah7@gmail.com</a>>:<br>
>> 用了很长时间的Ubuntu,对Ubuntu的包管理工具还是一知半解。<br>
>><br>
>> apt-get、aptitude和新立得,它们到底有什么区别?<br>
>><br>
>> 新立得用起来确实是直观方便,不过ssh的时候,就不那么方便了,还有貌似解决不了缺少公钥问题,或者是比较繁琐?它只是apt*命令的一个图形前端么?<br>
>><br>
>> apt-get在帮助里声明这个apt有超级牛力?这个平时还是挺好用的,不过没有查找的功能?感觉离不开这个工具的原因是build-dep,想自己用源码编译的时候,这个命令太好用了。<br>
>><br>
>> aptitude声明没有超级牛力?但是它的search,感觉也离不开?但是好像从10.10开始,Ubuntu已经默认没有aptitude,apt-get已经能完全取代它了么?<br>
>><br>
>> 希望有高人详解下这几个工具的细节,最好也能比较下异同。<br>
>><br>
>> --<br>
>> ubuntu-zh mailing list<br>
>> <a href="mailto:ubuntu-zh@lists.ubuntu.com">ubuntu-zh@lists.ubuntu.com</a><br>
>> <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh</a><br>
>><br>
><br>
><br>
><br>
<br>
--<br>
ubuntu-zh mailing list<br>
<a href="mailto:ubuntu-zh@lists.ubuntu.com">ubuntu-zh@lists.ubuntu.com</a><br>
<a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh</a><br>
</div></div></blockquote></div><br></div>