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

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
littleUbuntu
帖子: 1103
注册时间: 2006-10-19 9:02

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

#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

#3

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

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

#4

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

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