3139N/A<!ENTITY % ent SYSTEM "entities.ent">
3387N/A<refmeta><refentrytitle>pkg.sysrepo</refentrytitle><manvolnum>8</manvolnum> <refmiscinfo class="date">2013 年 5 月 21 日</refmiscinfo> <refmiscinfo class="sectdesc">&man8;</refmiscinfo> <refmiscinfo class="software">&release;</refmiscinfo> <refmiscinfo class="arch">generic</refmiscinfo> <refmiscinfo class="copyright">Copyright (c) 2007, 2016, Oracle and/or its affiliates.All rights reserved.</refmiscinfo>
3139N/A<para><command>pkg.sysrepo</command> 用于生成映像包管理系统 (Image Packaging System, IPS) 系统信息库的配置文件。<command>pkg.sysrepo </command> 由 <literal>svc:/application/pkg/system-repository</literal> 服务管理工具 (Service Management Facility, SMF) 服务调用。应对 SMF 服务中的属性进行配置更改。</para>
3356N/A<para>系统信息库主要用于全局区域,以允许非全局区域访问在全局区域中配置的系统信息库。SMF 服务 <literal>svc:/application/pkg/zones-proxyd</literal> 和 <literal> svc:/application/pkg/zones-proxy-client</literal> 负责提供非全局区域和全局区域之间的传输。只有 <literal>pkg</literal>(7) 使用该传输。</para>
3139N/A<para>请注意,只有 <literal>http</literal>、<literal>https</literal> 和 <literal>v4</literal> 文件系统信息库以及 <literal>p5p</literal> 归档受支持。较旧的文件系统信息库格式不受支持。有关系统信息库版本的更多信息,请参见 <command>pkgrepo</command>(1)。</para>
3139N/A<para>缺省情况下,使用文件高速缓存。但是,可以使用特殊值 <literal>memory </literal> 来表示应使用内存高速缓存。特殊值 <literal>None</literal> 可用于表示系统信息库不应执行任何缓存。应使用 <literal>config/cache_dir</literal> SMF 属性配置该设置。</para>
3139N/A<listitem><para>定义系统信息库的最大高速缓存大小的整数值 (MB)。应使用 <literal> config/cache_max</literal> SMF 属性配置该设置。</para>
3387N/A<listitem><para>采用以下格式的字符串:<literal><replaceable>scheme</replaceable>://<replaceable> hostname</replaceable>[:<replaceable>port</replaceable>]</literal>。该字符串定义了系统信息库访问基于 http 的软件包系统信息库可使用的 Web 代理服务器。可以使用 <literal>config/http_proxy</literal> SMF 属性配置此设置。</para>
3387N/A<listitem><para>采用以下格式的字符串:<literal><replaceable>scheme</replaceable>://<replaceable> hostname</replaceable>[:<replaceable>port</replaceable>]</literal>。该字符串定义了系统信息库访问基于 https 的软件包系统信息库可使用的 Web 代理服务器。可以使用 <literal>config/https_proxy</literal> SMF 属性配置此设置。</para>
3139N/A<screen>$ <userinput>svcadm enable svc:/application/pkg/system-repository</userinput></screen>
3139N/A<tgroup cols="2" colsep="1" rowsep="1"><colspec colname="col1" colwidth="198*" align="left" /><colspec colname="col2" colwidth="198*" align="left" /><thead>
3356N/A<para><olink targetdoc="refman" targetptr="pkg-1"><citerefentry><refentrytitle>pkg</refentrytitle><manvolnum>1</manvolnum></citerefentry></olink>、<olink targetdoc="refman" targetptr="pkg.depotd-8"><citerefentry><refentrytitle>pkg.depotd</refentrytitle><manvolnum>8</manvolnum></citerefentry></olink>、<olink targetdoc="refman" targetptr="pkg-7"><citerefentry><refentrytitle>pkg</refentrytitle><manvolnum>7</manvolnum></citerefentry></olink></para>