Chinaunix首页 | 论坛 | 博客
  • 博客访问: 216874
  • 博文数量: 60
  • 博客积分: 2440
  • 博客等级: 大尉
  • 技术积分: 530
  • 用 户 组: 普通用户
  • 注册时间: 2009-05-12 16:38
文章分类

全部博文(60)

文章存档

2011年(2)

2010年(16)

2009年(42)

我的朋友

分类: LINUX

2009-07-07 15:50:57




 A virtual package is one which appears in the Provides control file field of another package. The effect is as if the package(s) which provide a particular virtual package name had been listed by name everywhere the virtual package name appears. (See also Virtual packages, Section 3.6)

If there are both concrete and virtual packages of the same name, then the dependency may be satisfied (or the conflict caused) by either the concrete package with the name in question or any other concrete package which provides the virtual package with the name in question. This is so that, for example, supposing we have

     Package: foo
     Depends: bar

and someone else releases an enhanced version of the bar package they can say:

     Package: bar-plus
     Provides: bar

and the bar-plus package will now also satisfy the dependency for the foo package.

所谓虚包,就是这个包的包名会出现在别的包的control文件的Provides域中。例子中foo依赖bar,而bar是个由bar-plus提供的虚包,这样foo就转而依赖bar-plus了。
阅读(2122) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~