uTools-Manuals/docs/linux/rpmquery.html
2019-04-21 11:50:48 +08:00

18 lines
924 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<h1 id="rpmquery">rpmquery</h1>
<p>从RPM数据库中查询软件包信息</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>rpmquery命令</strong> 使用多种依据从rpm数据库中查询软件包信息。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">rpmquery(选项)</code></pre>
<h3 id="选项">选项</h3>
<pre><code class="language-bash">-qf查询指定的文件所属的软件包
-q查询指定的软件包是否被安装
-qc查询软件包中的配置文件
-qd查询软件包中的文档文件
-qi查询软件包的基本信息。</code></pre>
<h3 id="实例">实例</h3>
<p>使用rpmquery命令查询指定文件所属的软件包</p>
<pre><code class="language-bash">[root@localhost ~]# rpmquery -qf /usr/bin/htpasswd
httpd-2.2.3-81.el5.centos</code></pre>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->