2019-04-21 11:50:48 +08:00

30 lines
1.4 KiB
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="dpkg">dpkg</h1>
<p>Debian Linux系统上安装、创建和管理软件包</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>dpkg命令</strong> 是Debian Linux系统用来安装、创建和管理软件包的实用工具。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">dpkg(选项)(参数)</code></pre>
<h3 id="选项">选项</h3>
<pre><code class="language-bash">-i安装软件包
-r删除软件包
-P删除软件包的同时删除其配置文件
-L显示于软件包关联的文件
-l显示已安装软件包列表
--unpack解开软件包
-c显示软件包内文件列表
--confiugre配置软件包。</code></pre>
<h3 id="参数">参数</h3>
<p>Deb软件包指定要操作的.deb软件包。</p>
<h3 id="实例">实例</h3>
<pre><code class="language-bash">dpkg -i package.deb #安装包
dpkg -r package #删除包
dpkg -P package #删除包(包括配置文件)
dpkg -L package #列出与该包关联的文件
dpkg -l package #显示该包的版本
dpkg --unpack package.deb #解开deb包的内容
dpkg -S keyword #搜索所属的包内容
dpkg -l #列出当前已安装的包
dpkg -c package.deb #列出deb包的内容
dpkg --configure package #配置包</code></pre>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->