LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: linuxue

关于debian安装软件的一点疑惑,望高手指点

[复制链接]
 楼主| 发表于 2010-1-16 12:53:38 | 显示全部楼层
Post by d00m3d;2064568
If you look at the dependencies of these packages, you can see compiz does not depend on fusion-icon, so installing compiz may not install fusion-icon.

However, fusion-icon depends on compiz-xxxx, installing fusion-icon will automatically install compiz-xxxx

Please pay attention, whatever package depends on which package is defined by the package maintainer, it is how the dependency work.  It is also the same as other package manager in other distros.

You system resolve the dependencies based on these pre-defined information given by the maintainer, none of the package system will not be so smart to resolve it by itself.


非常感谢,看了你的回复,感觉学习到很多东西!

那么,既然包的依赖关系是由包的发布者提供的,那么就这个例子来说,compiz软件的维护者没有指出他们依赖fusion-icon的包,所以,fusion-icon也就只能由软件安装者自行安装了。

那么,我怎么知道我这个compiz软件还缺一些非软件依赖关系,但是能够“锦上添花”的包呢?比如fusion-icon。

难道是通过什么方法,找到有依赖compiz的包,比如fusion-icon,然后识别出可以安装上它来为compiz服务?

dpkg是不是能做到这点?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-1-16 13:09:31 | 显示全部楼层
Post by stesen;2064574
按照我的理解,这些包都是用synaptic或aptitude或apt-cache搜出来的,看到包的介绍,认为自己需要,所以装了
举个例子,我装openbox,apt-get install openbox不会自动装obconf,但我用apt-cache search openbox,看到:

觉得obconf是我需要的包,所以顺便apt-get install openbox obconf了

同样emacs有n多插件,大部分apt不会自动帮你装上,你搜到觉得有用的就自己把它加到apt-get install后面了

这些包一般是非主要的包,属于"增强功能"型的



是的,我问的其实就是这个,呵呵

看来apt博大精深呀,这个包管理系统真的非常强大!

谢谢你的解释!
回复 支持 反对

使用道具 举报

发表于 2010-1-16 13:31:54 | 显示全部楼层
相关联二进制包之间具有Depends、Recommends和Suggests等多种关系,源码编译时还有Build-Depends之类,依据所选择安装包而确定取舍,并根据不同APT的设置决定直接安装或只给出提示

社区版基本文档都很完备,绝大多数问题和疑惑都有现成答案,这也是RTFM经久不衰的原因所在
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-1-16 13:55:36 | 显示全部楼层
Post by superjet;2064594
相关联二进制包之间具有Depends、Recommends和Suggests等多种关系,源码编译时还有Build-Depends之类,依据所选择安装包而确定取舍,并根据不同APT的设置决定直接安装或只给出提示

社区版基本文档都很完备,绝大多数问题和疑惑都有现成答案,这也是RTFM经久不衰的原因所在


学习了!呵呵
回复 支持 反对

使用道具 举报

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

本版积分规则

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