aptitude的安装和apt-get的安装的区别示例

重复贴和参考价值不大的帖子,版主维护
回复
littleUbuntu
帖子: 1103
注册时间: 2006-10-19 9:02
送出感谢: 0
接收感谢: 0

aptitude的安装和apt-get的安装的区别示例

#1

帖子 littleUbuntu » 2008-01-22 7:54

今天打算安装vbox。分别通过apt-get install, aptitude install,得到以下不同的包安装:

$ sudo aptitude install virtualbox
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
Note: selecting "virtualbox-ose" instead of the
virtual package "virtualbox"
The following NEW packages will be automatically installed:
debhelper dpatch fakeroot gettext html2text intltool-debian kbuild
libcompress-raw-zlib-perl libcompress-zlib-perl libio-compress-base-perl
libio-compress-zlib-perl libmail-sendmail-perl libxalan110 libxerces27
module-assistant patchutils po-debconf
virtualbox-ose-modules-2.6.22-14-generic virtualbox-ose-source
The following NEW packages will be installed:
debhelper dpatch fakeroot gettext html2text intltool-debian kbuild
libcompress-raw-zlib-perl libcompress-zlib-perl libio-compress-base-perl
libio-compress-zlib-perl libmail-sendmail-perl libxalan110 libxerces27
module-assistant patchutils po-debconf virtualbox-ose
virtualbox-ose-modules-2.6.22-14-generic virtualbox-ose-source
0 packages upgraded, 20 newly installed, 0 to remove and 0 not upgraded.
Need to get 12.3MB of archives. After unpacking 41.7MB will be used.
Do you want to continue? [Y/n/?] n
Abort.
$ sudo apt-get install virtualbox
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting virtualbox-ose instead of virtualbox
The following extra packages will be installed:
libxalan110 libxerces27 virtualbox-ose
virtualbox-ose-modules-2.6.22-14-generic
Suggested packages:
xalan
Recommended packages:
virtualbox-ose-source
The following NEW packages will be installed:
libxalan110 libxerces27 virtualbox-ose
virtualbox-ose-modules-2.6.22-14-generic
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 8574kB of archives.
After unpacking 28.3MB of additional disk space will be used.
Do you want to continue [Y/n]? n
Abort.
上次由 littleUbuntu 在 2008-01-22 8:05,总共编辑 1 次。
littleUbuntu
帖子: 1103
注册时间: 2006-10-19 9:02
送出感谢: 0
接收感谢: 0

#2

帖子 littleUbuntu » 2008-01-22 8:01

好像debian支持用户使用aptitude,据说能够更好的处理包之间的依赖关系,降低系统受到破坏的可能性。

不过现在似乎也分为2派,一派喜欢apt-get的简洁,一派喜欢aptitude的严谨完善。看个人所好了:

附上--without-recommends参数后aptitude的安装情况。

$ sudo aptitude install virtualbox --without-recommends
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
Note: selecting "virtualbox-ose" instead of the
virtual package "virtualbox"
The following NEW packages will be automatically installed:
libxalan110 libxerces27 virtualbox-ose-modules-2.6.22-14-generic
The following NEW packages will be installed:
libxalan110 libxerces27 virtualbox-ose
virtualbox-ose-modules-2.6.22-14-generic
0 packages upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 8574kB of archives. After unpacking 28.3MB will be used.
Do you want to continue? [Y/n/?] n
Abort.

看起来也简洁了不少。
头像
npnufn
帖子: 1845
注册时间: 2005-10-14 15:56
送出感谢: 0
接收感谢: 7 次

#3

帖子 npnufn » 2008-01-22 8:28

都不错,使用哪个都行。
不过 不要 同时使用两套管理工具维护系统,因为他们使用各自的数据库,混用可能造成意想不到的问题。
yunio:又一个支持linux的云存储:链接 (非邀请链接)。
BCM4313驱动正常无法联网的解决:这里
plank:轻巧漂亮的dock 介绍在这里
头像
qianwx
帖子: 730
注册时间: 2006-07-08 14:41
送出感谢: 0
接收感谢: 0

#4

帖子 qianwx » 2008-01-22 14:35

受教了。。。。。。谢谢。。。
回复

回到 “归档贴”