|
@@ -10,7 +10,7 @@
|
|
|
|
|
|
|
|
<refnamediv>
|
|
<refnamediv>
|
|
|
<refname>dpkg</refname>
|
|
<refname>dpkg</refname>
|
|
|
- <refpurpose>medium-level package manager for Debian</refpurpose>
|
|
|
|
|
|
|
+ <refpurpose>a medium-level package manager for Debian</refpurpose>
|
|
|
</refnamediv>
|
|
</refnamediv>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -37,11 +37,6 @@
|
|
|
packages. The descriptions of what <command>dpkg</command> does when
|
|
packages. The descriptions of what <command>dpkg</command> does when
|
|
|
installing and removing packages are particularly inadequate.
|
|
installing and removing packages are particularly inadequate.
|
|
|
</para>
|
|
</para>
|
|
|
-
|
|
|
|
|
- <para>
|
|
|
|
|
- For information about this, please refer to sections regarding the
|
|
|
|
|
- Debian packaging system in the Debian FAQ or in the Debian Reference.
|
|
|
|
|
- </para>
|
|
|
|
|
</refsect1>
|
|
</refsect1>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -50,7 +45,10 @@
|
|
|
|
|
|
|
|
<para>
|
|
<para>
|
|
|
<command>dpkg</command> is a medium-level tool to install, build, remove
|
|
<command>dpkg</command> is a medium-level tool to install, build, remove
|
|
|
- and manage Debian packages. <command>dpkg</command>
|
|
|
|
|
|
|
+ and manage Debian packages. The primary and more user-friendly front-end
|
|
|
|
|
+ for <command>dpkg</command> is <command>dselect</command> (see
|
|
|
|
|
+ <citerefentry><refentrytitle>dselect</refentrytitle>
|
|
|
|
|
+ <manvolnum>8</manvolnum></citerefentry>). <command>dpkg</command> itself
|
|
|
is controlled entirely via command line parameters, which consist of
|
|
is controlled entirely via command line parameters, which consist of
|
|
|
exactly one action and zero or more options. The action-parameter tells
|
|
exactly one action and zero or more options. The action-parameter tells
|
|
|
<command>dpkg</command> what to do and options control the behavior of
|
|
<command>dpkg</command> what to do and options control the behavior of
|
|
@@ -82,17 +80,6 @@
|
|
|
<manvolnum>1</manvolnum> </citerefentry> for information about these
|
|
<manvolnum>1</manvolnum> </citerefentry> for information about these
|
|
|
actions.
|
|
actions.
|
|
|
</para>
|
|
</para>
|
|
|
-
|
|
|
|
|
- <note>
|
|
|
|
|
- <para>
|
|
|
|
|
- The primary and more user-friendly front-end for
|
|
|
|
|
- <command>dpkg</command> is <command>dselect</command> (see
|
|
|
|
|
- <citerefentry><refentrytitle>dselect</refentrytitle>
|
|
|
|
|
- <manvolnum>8</manvolnum></citerefentry>). There are other front-ends
|
|
|
|
|
- such as those based on <citerefentry><refentrytitle>apt</refentrytitle>
|
|
|
|
|
- <manvolnum>8</manvolnum></citerefentry>.
|
|
|
|
|
- </para>
|
|
|
|
|
- </note>
|
|
|
|
|
</refsect1>
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1>
|
|
<refsect1>
|
|
@@ -699,10 +686,11 @@
|
|
|
operator. <command>dpkg</command> returns success (zero result) if
|
|
operator. <command>dpkg</command> returns success (zero result) if
|
|
|
the specified condition is satisfied, and failure (nonzero result)
|
|
the specified condition is satisfied, and failure (nonzero result)
|
|
|
otherwise. There are two groups of operators, which differ in how
|
|
otherwise. There are two groups of operators, which differ in how
|
|
|
- they treat a missing <option>ver1</option> or <option>ver2</option>.
|
|
|
|
|
- These treat no version as earlier than any version:
|
|
|
|
|
- <emphasis>lt le eq ne ge gt</emphasis>. These treat no version as
|
|
|
|
|
- later than any version: <emphasis>lt-nl le-nl ge-nl gt-nl</emphasis>.
|
|
|
|
|
|
|
+ they treat an empty <option>ver1</option> or <option>ver2</option>.
|
|
|
|
|
+ These treat an empty version as earlier than any version:
|
|
|
|
|
+ <emphasis>lt le eq ne ge gt</emphasis>. These treat an empty version
|
|
|
|
|
+ as later than any version:
|
|
|
|
|
+ <emphasis>lt-nl le-nl ge-nl gt-nl</emphasis>.
|
|
|
These are provided only for compatibility with
|
|
These are provided only for compatibility with
|
|
|
<filename>control</filename> file syntax: <emphasis>< <<
|
|
<filename>control</filename> file syntax: <emphasis>< <<
|
|
|
<= = >= >> ></emphasis>.
|
|
<= = >= >> ></emphasis>.
|
|
@@ -734,7 +722,7 @@
|
|
|
</term>
|
|
</term>
|
|
|
|
|
|
|
|
<listitem><para>
|
|
<listitem><para>
|
|
|
- Display the usage instructions.
|
|
|
|
|
|
|
+ Display a brief help message.
|
|
|
</para></listitem>
|
|
</para></listitem>
|
|
|
</varlistentry>
|
|
</varlistentry>
|
|
|
|
|
|
|
@@ -777,14 +765,14 @@
|
|
|
<arg choice="plain">
|
|
<arg choice="plain">
|
|
|
<group choice="req">
|
|
<group choice="req">
|
|
|
<arg>--licence</arg>
|
|
<arg>--licence</arg>
|
|
|
- <arg>--license</arg>
|
|
|
|
|
|
|
+ <arg>--license </arg>
|
|
|
</group>
|
|
</group>
|
|
|
</arg>
|
|
</arg>
|
|
|
</cmdsynopsis>
|
|
</cmdsynopsis>
|
|
|
</term>
|
|
</term>
|
|
|
|
|
|
|
|
<listitem><para>
|
|
<listitem><para>
|
|
|
- Display <command>dpkg</command> copyright and licence information.
|
|
|
|
|
|
|
+ Display <command>dpkg</command> licence.
|
|
|
</para></listitem>
|
|
</para></listitem>
|
|
|
</varlistentry>
|
|
</varlistentry>
|
|
|
|
|
|
|
@@ -956,13 +944,13 @@
|
|
|
<screen>(*)</screen> are forced by default.
|
|
<screen>(*)</screen> are forced by default.
|
|
|
</para>
|
|
</para>
|
|
|
|
|
|
|
|
- <warning>
|
|
|
|
|
|
|
+ <note>
|
|
|
<para>
|
|
<para>
|
|
|
- These options are mostly intended to be used by experts only.
|
|
|
|
|
- Using them without fully understanding their effects may break
|
|
|
|
|
- your whole system.
|
|
|
|
|
|
|
+ <emphasis>Warning: These options are mostly intended to be used
|
|
|
|
|
+ by experts only. Using them without fully understanding their
|
|
|
|
|
+ effects may break your whole system.</emphasis>
|
|
|
</para>
|
|
</para>
|
|
|
- </warning>
|
|
|
|
|
|
|
+ </note>
|
|
|
|
|
|
|
|
<variablelist>
|
|
<variablelist>
|
|
|
<varlistentry>
|
|
<varlistentry>
|
|
@@ -1228,7 +1216,7 @@
|
|
|
(e.g. <screen>dpkg --purge foo --no-act</screen> will first
|
|
(e.g. <screen>dpkg --purge foo --no-act</screen> will first
|
|
|
purge package foo and then try to <command>purge</command>
|
|
purge package foo and then try to <command>purge</command>
|
|
|
package --no-act, even though you probably expected it to
|
|
package --no-act, even though you probably expected it to
|
|
|
- actually do nothing!)
|
|
|
|
|
|
|
+ actually do nothing)
|
|
|
</para>
|
|
</para>
|
|
|
</listitem>
|
|
</listitem>
|
|
|
</varlistentry>
|
|
</varlistentry>
|
|
@@ -1445,20 +1433,26 @@
|
|
|
<title>Examples</title>
|
|
<title>Examples</title>
|
|
|
|
|
|
|
|
<para>
|
|
<para>
|
|
|
- To list packages containing the string `vi' in their name:
|
|
|
|
|
|
|
+ To list packages related to the editor vi:
|
|
|
|
|
|
|
|
<Screen><command>dpkg</command> <option>-l</option> '*vi*'</Screen>
|
|
<Screen><command>dpkg</command> <option>-l</option> '*vi*'</Screen>
|
|
|
</para>
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
<para>
|
|
|
- To see the entries in <filename>/var/lib/dpkg/available</filename> on
|
|
|
|
|
- several packages:
|
|
|
|
|
|
|
+ To see the entries in <filename>/var/lib/dpkg/available</filename> on two
|
|
|
|
|
+ packages
|
|
|
|
|
+
|
|
|
|
|
+ <Screen><command>dpkg</command> <option>--print-avail</option> elvis vim</Screen>
|
|
|
|
|
+ </para>
|
|
|
|
|
+
|
|
|
|
|
+ <para>
|
|
|
|
|
+ To search the listing of packages yourself:
|
|
|
|
|
|
|
|
- <Screen><command>dpkg</command> <option>--print-avail</option> base-files login xfree86-common | pager</Screen>
|
|
|
|
|
|
|
+ <Screen><command>less</command> <filename>/var/lib/dpkg/available</filename></Screen>
|
|
|
</para>
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
<para>
|
|
|
- To remove an installed package named "emacs":
|
|
|
|
|
|
|
+ To remove an installed emacs package:
|
|
|
|
|
|
|
|
<Screen><command>dpkg</command> <option>-r</option> emacs</Screen>
|
|
<Screen><command>dpkg</command> <option>-r</option> emacs</Screen>
|
|
|
</para>
|
|
</para>
|
|
@@ -1493,6 +1487,11 @@
|
|
|
<title>See Also</title>
|
|
<title>See Also</title>
|
|
|
|
|
|
|
|
<para>
|
|
<para>
|
|
|
|
|
+ <citerefentry>
|
|
|
|
|
+ <refentrytitle>dselect</refentrytitle>
|
|
|
|
|
+ <manvolnum>8</manvolnum>
|
|
|
|
|
+ </citerefentry>,
|
|
|
|
|
+
|
|
|
<citerefentry>
|
|
<citerefentry>
|
|
|
<refentrytitle>dpkg-deb</refentrytitle>
|
|
<refentrytitle>dpkg-deb</refentrytitle>
|
|
|
<manvolnum>1</manvolnum>
|
|
<manvolnum>1</manvolnum>
|
|
@@ -1506,17 +1505,12 @@
|
|
|
<citerefentry>
|
|
<citerefentry>
|
|
|
<refentrytitle>deb-control</refentrytitle>
|
|
<refentrytitle>deb-control</refentrytitle>
|
|
|
<manvolnum>5</manvolnum>
|
|
<manvolnum>5</manvolnum>
|
|
|
- </citerefentry>,
|
|
|
|
|
-
|
|
|
|
|
- <citerefentry>
|
|
|
|
|
- <refentrytitle>dselect</refentrytitle>
|
|
|
|
|
- <manvolnum>8</manvolnum>
|
|
|
|
|
- </citerefentry>,
|
|
|
|
|
|
|
+ </citerefentry>
|
|
|
|
|
|
|
|
<citerefentry>
|
|
<citerefentry>
|
|
|
- <refentrytitle>apt</refentrytitle>
|
|
|
|
|
|
|
+ <refentrytitle>dpkg-reconfigure</refentrytitle>
|
|
|
<manvolnum>8</manvolnum>
|
|
<manvolnum>8</manvolnum>
|
|
|
- </citerefentry>.
|
|
|
|
|
|
|
+ </citerefentry>
|
|
|
</para>
|
|
</para>
|
|
|
</refsect1>
|
|
</refsect1>
|
|
|
</refentry>
|
|
</refentry>
|