免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2179 | 回复: 0
打印 上一主题 下一主题

debian中sources.list中DEB AND DEB-SRC说明 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-07-14 14:11 |只看该作者 |倒序浏览
THE DEB AND DEB-SRC TYPES
       The deb type describes a typical two-level Debian archive,
       distribution/component. Typically, distribution is generally one of
       stable unstable or testing while component is one of main contrib
       non-free or non-us The deb-src type describes a debian distribution's
       source code in the same form as the deb type. A deb-src line is
       required to fetch source indexes.
       The format for a sources.list entry using the deb and deb-src types
       are:
          deb uri distribution [component1] [component2] [...]
       The URI for the deb type must specify the base of the Debian
       distribution, from which APT will find the information it needs.
       distribution can specify an exact path, in which case the components
       must be omitted and distribution must end with a slash (/). This is
       useful for when only a particular sub-section of the archive denoted by
       the URI is of interest. If distribution does not specify an exact path,
       at least one component must be present.

       distribution may also contain a variable, $(ARCH) which expands to the
       Debian architecture (i386, m68k, powerpc, ...) used on the system. This
       permits architecture-independent sources.list files to be used. In
       general this is only of interest when specifying an exact path, APT
       will automatically generate a URI with the current architecture
       otherwise.
       Since only one distribution can be specified per line it may be
       necessary to have multiple lines for the same URI, if a subset of all
       available distributions or components at that location is desired. APT
       will sort the URI list after it has generated a complete set
       internally, and will collapse multiple references to the same Internet
       host, for instance, into a single connection, so that it does not
       inefficiently establish an FTP connection, close it, do something else,
       and then re-establish a connection to that same host. This feature is
       useful for accessing busy FTP sites with limits on the number of
       simultaneous anonymous users. APT also parallelizes connections to
       different hosts to more effectively deal with sites with low bandwidth.

       It is important to list sources in order of preference, with the most
       preferred source listed first. Typically this will result in sorting by
       speed from fastest to slowest (CD-ROM followed by hosts on a local
       network, followed by distant Internet hosts, for example).
       Some examples:
          deb
http://http.us.debian.org/debian
stable main contrib non-free
          deb
http://http.us.debian.org/debian
dists/stable-updates/

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/28499/showart_1995700.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP