Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > 68c0c2ff89d8bf9051ff1b9773ed48e4 > files > 9493

libzypp-doc-17.9.0-1.1.mga7.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libzypp: Code 12 Pattern Packages</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">libzypp
   &#160;<span id="projectnumber">17.9.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('zypp-pattern-packages.html','');});
/* @license-end */
</script>
<div id="doc-content">
<div class="PageDoc"><div class="header">
  <div class="headertitle">
<div class="title">Code 12 Pattern Packages </div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><dl class="section author"><dt>Author</dt><dd>Michael Andres <a href="#" onclick="location.href='mai'+'lto:'+'ma@'+'su'+'se.'+'de'; return false;">ma@su<span style="display: none;">.nosp@m.</span>se.d<span style="display: none;">.nosp@m.</span>e</a></dd></dl>
<hr/>
<h1><a class="anchor" id="zypp-pattern-packages_intro"></a>
Intro</h1>
<p>Since Code12 (SLES-12) we utilize a new method of defining patterns, as opposed to the older XML-based patterns files. A pattern and it's dependencies are now represented by a rpm package and the few pattern specific properties are provided by the package. No extra XML-file is needed.</p>
<p>By convention a patterns-package for a <code>pattern:FOO</code> is named <code>patterns-[*-]FOO</code> and is must provide <code>pattern() = FOO</code>. Usually the patterns-package name has a distribution or product identifier embedded, like in <code>patterns-sles-Minimal</code> or <code>patterns-openSUSE-xfce</code>.</p>
<p>The pattens content is expressed by the patterns-packages dependencies to other packages and patterns-packages.</p>
<p>The list of patterns-package provides used for the new pattern autogeneration:</p>
<table width="100%" border="1">
<tr>
<td colspan="2"><b>Basic provides relevant for package management (libzypp/zypper):</b>  </td></tr>
<tr>
<td width="30%"><code>Provides: pattern() = FOO</code> </td><td>The patterns name: <code>FOO</code>. Additional attributes like version, release, architecture, summary and description are taken from the pattenrs-package.  </td></tr>
<tr>
<td><code>Provides: pattern-visible()</code> </td><td>A UI hint telling whether the pattern should be shown to the user. If the provides is missing, the UI will usually hide the pattern in lists and output. This is mainly used for helper patterns defining a basic content which is then required/recommended by different (visible) patterns.  </td></tr>
<tr>
<td colspan="2"><b>Additional pattern properties not used by libzypp, but provided by the API mainly for the YAST UI:</b>  </td></tr>
<tr>
<td><code>Provides: pattern-icon() = STRING</code> </td><td>Name of an icon the UI should use for this pattern.  </td></tr>
<tr>
<td><code>Provides: pattern-order() = STRING</code> </td><td>A string used by the UI for sorting patterns rather than 'by name'. Usually some 4-digit string like "1750"  </td></tr>
<tr>
<td><code>Provides: pattern-category() = STRING</code> </td><td>The category name used in the UI in English (en).  </td></tr>
<tr>
<td><code>Provides: pattern-category(de) = STRING</code> </td><td>The category name translated. E.g. into German (de).  </td></tr>
<tr>
<td><code>Provides: pattern-includes() = STRING</code> </td><td>Hint for the UI to include an other patterns content (i.e. its required and recommended packages) in this patterns content list. Usually used to embed the content of an invisible pattern in a visible one.  </td></tr>
<tr>
<td><code>Provides: pattern-extends() = STRING</code> </td><td>Reverse-includes. Hint for the UI to include this patterns content (i.e. its required and recommended packages) in an other patterns content list. Usually used to embed the content of an invisible pattern in a visible one.  </td></tr>
<tr>
<td colspan="2">STRING must be url-hexencoded so that it does not contain any characters that rpm-provides can't have. E.g.: ' ' =&gt; %20 / ',' =&gt; %2C / '-' =&gt; %2D  </td></tr>
</table>
<div class="fragment"><div class="line">patterns-sles-Minimal-12-37.1.x86_64.rpm</div><div class="line"> PROVIDES {</div><div class="line">  pattern() == Minimal</div><div class="line">  pattern-icon() == pattern-basis</div><div class="line">  pattern-order() == 1099</div><div class="line">  pattern-visible()</div><div class="line">  pattern-category() == Base%20Technologies</div><div class="line">  pattern-category(ar) == %D8%A7%D9%84%D8%AA%D9%83%D9%86%D9%88%D9%84%D9%88%D8%AC%D9%8A%D8%A7%D8%AA%20%D8%A7%D9%84%D8%A3%D8%B3%D8%A7%D8%B3%D9%8A%D8%A9</div><div class="line">  pattern-category(ca) == Tecnologies%20de%20base</div><div class="line">  pattern-category(cs) == Z%C3%A1kladn%C3%AD%20technologie</div><div class="line">  pattern-category(da) == Basisteknologier</div><div class="line">  pattern-category(de) == Basistechnologien</div><div class="line">  ...</div><div class="line">}</div><div class="line"> REQUIRES {</div><div class="line">  systemd</div><div class="line">  coreutils</div><div class="line">  insserv</div><div class="line">  aaa_base</div><div class="line">  ...</div><div class="line">}</div><div class="line"> RECOMMENDS (22){</div><div class="line">  grub2</div><div class="line">  rpcbind</div><div class="line">  nfs-client</div><div class="line">  rsyslog</div><div class="line">  ...</div><div class="line">}</div></div><!-- fragment --> </div></div><!-- PageDoc -->
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
  </ul>
</div>
</body>
</html>