Sophie

Sophie

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

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: Repository Variables</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-repovars.html','');});
/* @license-end */
</script>
<div id="doc-content">
<div class="PageDoc"><div class="header">
  <div class="headertitle">
<div class="title">Repository Variables </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>
<h1><a class="anchor" id="zypp-repovars-intro"></a>
Repository Variables</h1>
<p>Within a <code></code>.repo or <code></code>.serivce file, the name and URLs are subject to variable substitution.</p>
<p>Variables are e.g. usefull for related repositories like packman (<code><a href="http://ftp.gwdg.de/pub/linux/packman/suse/$releasever">http://ftp.gwdg.de/pub/linux/packman/suse/$releasever</a></code>), which shall always fit the installed distribution, even after a distribution upgrade. To help performing a distribution upgrade, the value of <code>$releasever</code> can be overwritten in zypper using the <code>&ndash;releasever</code> global option. This way you can easily switch all repositories using <code>$releasever</code> to the new version (provided the server layouts did not change and new repos are already available).</p>
<p>The variable expander also supports shell like definition of default and alternate values.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="structzypp_1_1repo_1_1RepoVarExpand.html">zypp::repo::RepoVarExpand</a> Variable expander</dd></dl>
<h2><a class="anchor" id="zypp-repoars-builtin"></a>
Builtin repository variables</h2>
<ul>
<li><code>$arch</code> - The system's CPU architecture.</li>
</ul>
<ul>
<li><code>$basearch</code> - The base architecture of the system. For example, iX86 machines have a base architecture of <code>i386</code>, while AMD64 and Intel64 have <code>x86_64</code>.</li>
</ul>
<ul>
<li><code>$releasever</code> - The version of your openSUSE or SUSE Linux. The value is obtained from the <code>/product/version</code> XML-node in <code>/etc/products.d/baseproduct</code>.</li>
</ul>
<ul>
<li><code>$releasever_minor</code> </li>
<li><code>$releasever_major</code> - <code>$releasever_major</code> will be set to the leading portion up to (but not including) the 1st dot; <code>$releasever_minor</code> to the trailing portion after the 1st dot. If there's no dot in <code>$releasever</code>, <code>$releasever_major</code> is the same as <code>$releasever</code> and <code>$releasever_minor</code> is empty.</li>
</ul>
<h2><a class="anchor" id="zypp-repoars-userdefined"></a>
User defined repository variables [requires 'libzypp(repovarexpand) &gt;= 1']</h2>
<p>A custom repository variable is defined by creating a file in <code>/etc/zypp/vars</code>.d. The variable name equals the file name. The files first line (up to but not including the newline character) defines the variables value. Valid variable(file) names consist of alphanumeric chars and '_' only.</p>
<p>Variable substitution within an URIs authority [requires 'libzypp(repovarexpand) &gt;= 1.1'] is limited to <code>host</code> and <code>port</code>. Bash style definition of default and alternate values is not supported. No variables can be used in an URIs <code>scheme</code>, <code>user</code> and <code>password</code>. </p>
</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>