<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.rpminfo.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'function.rpmdbsearch.php',
    1 => 'rpmdbsearch',
    2 => 'Search RPM packages',
  ),
  'up' => 
  array (
    0 => 'ref.rpminfo.php',
    1 => 'RpmInfo İşlevleri',
  ),
  'prev' => 
  array (
    0 => 'function.rpmdbinfo.php',
    1 => 'rpmdbinfo',
  ),
  'next' => 
  array (
    0 => 'function.rpmdefine.php',
    1 => 'rpmdefine',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/rpminfo/functions/rpmdbsearch.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.rpmdbsearch" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">rpmdbsearch</h1>
  <p class="verinfo">(PECL rpminfo &gt;= 0.3.0)</p><p class="refpurpose"><span class="refname">rpmdbsearch</span> &mdash; <span class="dc-title">Search RPM packages</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.rpmdbsearch-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>rpmdbsearch</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$pattern</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$rpmtag</code><span class="initializer"> = RPMTAG_NAME</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$rpmmire</code><span class="initializer"> = -1</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$full</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></span></span><br>): <span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.array.php" class="type array">array</a></span></span></div>

  <p class="simpara">
   Search packages in the system RPM database.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.rpmdbsearch-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <dl>
   
    <dt><code class="parameter">pattern</code></dt>
    <dd>
     <span class="simpara">
      Value to search for.
     </span>
    </dd>
   
   
    <dt><code class="parameter">rpmtag</code></dt>
    <dd>
     <span class="simpara">
      Search criterion, which is one of the
      <strong><code><a href="rpminfo.constants.php#constant.rpmtag-arch">RPMTAG_<span class="replaceable">*</span></a></code></strong> constants.
     </span>
    </dd>
   
   
    <dt><code class="parameter">rpmmire</code></dt>
    <dd>
     <span class="simpara">
      Pattern type, which is one of the
      <strong><code><a href="rpminfo.constants.php#constant.rpmmire-default">RPMMIRE_<span class="replaceable">*</span></a></code></strong> constants.
      When &lt; 0 the criterion must equal the value, and database index is used if possible.
     </span>
    </dd>
   
   
    <dt><code class="parameter">full</code></dt>
    <dd>
     <span class="simpara">
      If <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> all information headers for the file are retrieved, else only a minimal set.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.rpmdbsearch-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="simpara">
   An <span class="type"><a href="language.types.array.php" class="type array">array</a></span> of <span class="type"><a href="language.types.array.php" class="type array">array</a></span> of information, or <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> on error.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.rpmdbsearch-examples">
  <h3 class="title">Örnekler</h3>
  <div class="example" id="example-1">
   <p><strong>Örnek 1 Searching for the package owning a file</strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$info </span><span style="color: #007700">= </span><span style="color: #0000BB">rpmdbsearch</span><span style="color: #007700">(</span><span style="color: #DD0000">"/usr/bin/php"</span><span style="color: #007700">, </span><span style="color: #0000BB">RPMTAG_INSTFILENAMES</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">$info</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   <div class="example-contents"><p>
Yukarıdaki örneğin çıktısı:</p></div>
   <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">Array
(
    [0] =&gt; Array
        (
            [Name] =&gt; php-cli
            [Version] =&gt; 7.4.4
            [Release] =&gt; 1.fc32
            [Summary] =&gt; Command-line interface for PHP
            [Arch] =&gt; x86_64
        )

)</pre>
</div>
   </div>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.rpmdbsearch-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.rpmaddtag.php" class="function" rel="rdfs-seeAlso">rpmaddtag()</a> - Add tag retrieved in query</span></li>
  </ul>
 </div>


</div><?php manual_footer($setup); ?>