|
@@ -23,7 +23,7 @@
|
|
.\" You should have received a copy of the GNU General Public License
|
|
.\" You should have received a copy of the GNU General Public License
|
|
.\" along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
.\" along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
.
|
|
.
|
|
-.TH dpkg 1 "2014-08-16" "Debian Project" "dpkg suite"
|
|
|
|
|
|
+.TH dpkg 1 "%RELEASE_DATE%" "%VERSION%" "dpkg suite"
|
|
.SH NAME
|
|
.SH NAME
|
|
dpkg \- package manager for Debian
|
|
dpkg \- package manager for Debian
|
|
.
|
|
.
|
|
@@ -188,7 +188,7 @@ later (conffiles are configuration files that are listed in the
|
|
\fIDEBIAN/conffiles\fP control file).
|
|
\fIDEBIAN/conffiles\fP control file).
|
|
If \fB\-a\fP or \fB\-\-pending\fP is given instead of a package name,
|
|
If \fB\-a\fP or \fB\-\-pending\fP is given instead of a package name,
|
|
then all packages unpacked, but marked to be removed in file
|
|
then all packages unpacked, but marked to be removed in file
|
|
-\fI/var/lib/dpkg/status\fP, are removed.
|
|
|
|
|
|
+\fI%ADMINDIR%/status\fP, are removed.
|
|
|
|
|
|
Removing of a package consists of the following steps:
|
|
Removing of a package consists of the following steps:
|
|
.br
|
|
.br
|
|
@@ -208,7 +208,7 @@ Purge an installed or already removed package. This removes everything,
|
|
including conffiles.
|
|
including conffiles.
|
|
If \fB\-a\fP or \fB\-\-pending\fP is given instead of a package name,
|
|
If \fB\-a\fP or \fB\-\-pending\fP is given instead of a package name,
|
|
then all packages unpacked or removed, but marked to be purged in file
|
|
then all packages unpacked or removed, but marked to be purged in file
|
|
-\fI/var/lib/dpkg/status\fP, are purged.
|
|
|
|
|
|
+\fI%ADMINDIR%/status\fP, are purged.
|
|
|
|
|
|
Note: some configuration files might be unknown to \fBdpkg\fP because they
|
|
Note: some configuration files might be unknown to \fBdpkg\fP because they
|
|
are created and handled separately through the configuration scripts. In
|
|
are created and handled separately through the configuration scripts. In
|
|
@@ -267,7 +267,7 @@ in the \fIPackages-file\fP. The \fIPackages-file\fP distributed with
|
|
Debian is simply named \(Fo\fIPackages\fP\(Fc. If the \fIPackages-file\fP
|
|
Debian is simply named \(Fo\fIPackages\fP\(Fc. If the \fIPackages-file\fP
|
|
argument is missing or named \(Fo\fB\-\fP\(Fc then it will be read from
|
|
argument is missing or named \(Fo\fB\-\fP\(Fc then it will be read from
|
|
standard input (since dpkg 1.17.7). \fBdpkg\fP keeps its record of
|
|
standard input (since dpkg 1.17.7). \fBdpkg\fP keeps its record of
|
|
-available packages in \fI/var/lib/dpkg/available\fP.
|
|
|
|
|
|
+available packages in \fI%ADMINDIR%/available\fP.
|
|
|
|
|
|
A simpler one-shot command to retrieve and update the \fIavailable\fR
|
|
A simpler one-shot command to retrieve and update the \fIavailable\fR
|
|
file is \fBdselect update\fR. Note that this file is mostly useless
|
|
file is \fBdselect update\fR. Note that this file is mostly useless
|
|
@@ -444,15 +444,15 @@ See \fBdpkg\-query\fP(1) for more information about the following actions.
|
|
Search for a filename from installed packages.
|
|
Search for a filename from installed packages.
|
|
\fB\-p\fP, \fB\-\-print\-avail\fP \fIpackage-name\fP...
|
|
\fB\-p\fP, \fB\-\-print\-avail\fP \fIpackage-name\fP...
|
|
Display details about \fIpackage-name\fP, as found in
|
|
Display details about \fIpackage-name\fP, as found in
|
|
- \fI/var/lib/dpkg/available\fP. Users of APT-based frontends
|
|
|
|
|
|
+ \fI%ADMINDIR%/available\fP. Users of APT-based frontends
|
|
should use \fBapt\-cache show\fP \fIpackage-name\fP instead.
|
|
should use \fBapt\-cache show\fP \fIpackage-name\fP instead.
|
|
.fi
|
|
.fi
|
|
.
|
|
.
|
|
.SH OPTIONS
|
|
.SH OPTIONS
|
|
All options can be specified both on the command line and in the \fBdpkg\fP
|
|
All options can be specified both on the command line and in the \fBdpkg\fP
|
|
-configuration file \fI/etc/dpkg/dpkg.cfg\fP or fragment files (with names
|
|
|
|
|
|
+configuration file \fI%PKGCONFDIR%/dpkg.cfg\fP or fragment files (with names
|
|
matching this shell pattern \(aq[0-9a-zA-Z_-]*\(aq) on the configuration
|
|
matching this shell pattern \(aq[0-9a-zA-Z_-]*\(aq) on the configuration
|
|
-directory \fI/etc/dpkg/dpkg.cfg.d/\fP. Each line in the configuration
|
|
|
|
|
|
+directory \fI%PKGCONFDIR%/dpkg.cfg.d/\fP. Each line in the configuration
|
|
file is either an option (exactly the same as the command line option but
|
|
file is either an option (exactly the same as the command line option but
|
|
without leading hyphens) or a comment (if it starts with a \(oq\fB#\fP\(cq).
|
|
without leading hyphens) or a comment (if it starts with a \(oq\fB#\fP\(cq).
|
|
.br
|
|
.br
|
|
@@ -650,7 +650,7 @@ installed. This is an alias of \fB\-\-refuse\-downgrade\fP.
|
|
.BI \-\-admindir= dir
|
|
.BI \-\-admindir= dir
|
|
Change default administrative directory, which contains many files that
|
|
Change default administrative directory, which contains many files that
|
|
give information about status of installed or uninstalled packages, etc.
|
|
give information about status of installed or uninstalled packages, etc.
|
|
-(Defaults to \(Fo\fI/var/lib/dpkg\fP\(Fc)
|
|
|
|
|
|
+(Defaults to \(Fo\fI%ADMINDIR%\fP\(Fc)
|
|
.TP
|
|
.TP
|
|
.BI \-\-instdir= dir
|
|
.BI \-\-instdir= dir
|
|
Change default installation directory which refers to the directory where
|
|
Change default installation directory which refers to the directory where
|
|
@@ -661,7 +661,7 @@ means that the scripts see \fBinstdir\fP as a root directory.
|
|
.TP
|
|
.TP
|
|
.BI \-\-root= dir
|
|
.BI \-\-root= dir
|
|
Changing \fBroot\fP changes \fBinstdir\fP to \(Fo\fIdir\fP\(Fc and
|
|
Changing \fBroot\fP changes \fBinstdir\fP to \(Fo\fIdir\fP\(Fc and
|
|
-\fBadmindir\fP to \(Fo\fIdir\fP\fB/var/lib/dpkg\fP\(Fc.
|
|
|
|
|
|
+\fBadmindir\fP to \(Fo\fIdir\fP\fB%ADMINDIR%\fP\(Fc.
|
|
.TP
|
|
.TP
|
|
\fB\-O\fP, \fB\-\-selected\-only\fP
|
|
\fB\-O\fP, \fB\-\-selected\-only\fP
|
|
Only process the packages that are selected for installation. The
|
|
Only process the packages that are selected for installation. The
|
|
@@ -784,7 +784,7 @@ The output format used is the same as in \fB\-\-status\-fd\fP.
|
|
.TP
|
|
.TP
|
|
\fB\-\-log=\fP\fIfilename\fP
|
|
\fB\-\-log=\fP\fIfilename\fP
|
|
Log status change updates and actions to \fIfilename\fP, instead of
|
|
Log status change updates and actions to \fIfilename\fP, instead of
|
|
-the default \fI/var/log/dpkg.log\fP. If this option is given multiple
|
|
|
|
|
|
+the default \fI%LOGDIR%/dpkg.log\fP. If this option is given multiple
|
|
times, the last filename is used. Log messages are of the form:
|
|
times, the last filename is used. Log messages are of the form:
|
|
.RS
|
|
.RS
|
|
.TP
|
|
.TP
|
|
@@ -931,23 +931,23 @@ requested (with the \fB\-\-debug\fP option) for the maintainer scripts
|
|
.
|
|
.
|
|
.SH FILES
|
|
.SH FILES
|
|
.TP
|
|
.TP
|
|
-.I /etc/dpkg/dpkg.cfg.d/[0-9a-zA-Z_-]*
|
|
|
|
|
|
+.I %PKGCONFDIR%/dpkg.cfg.d/[0-9a-zA-Z_-]*
|
|
Configuration fragment files (since dpkg 1.15.4).
|
|
Configuration fragment files (since dpkg 1.15.4).
|
|
.TP
|
|
.TP
|
|
-.I /etc/dpkg/dpkg.cfg
|
|
|
|
|
|
+.I %PKGCONFDIR%/dpkg.cfg
|
|
Configuration file with default options.
|
|
Configuration file with default options.
|
|
.TP
|
|
.TP
|
|
-.I /var/log/dpkg.log
|
|
|
|
-Default log file (see \fI/etc/dpkg/dpkg.cfg\fP(5) and option
|
|
|
|
|
|
+.I %LOGDIR%/dpkg.log
|
|
|
|
+Default log file (see \fI%PKGCONFDIR%/dpkg.cfg\fP and option
|
|
\fB\-\-log\fP).
|
|
\fB\-\-log\fP).
|
|
.P
|
|
.P
|
|
The other files listed below are in their default directories, see option
|
|
The other files listed below are in their default directories, see option
|
|
\fB\-\-admindir\fP to see how to change locations of these files.
|
|
\fB\-\-admindir\fP to see how to change locations of these files.
|
|
.TP
|
|
.TP
|
|
-.I /var/lib/dpkg/available
|
|
|
|
|
|
+.I %ADMINDIR%/available
|
|
List of available packages.
|
|
List of available packages.
|
|
.TP
|
|
.TP
|
|
-.I /var/lib/dpkg/status
|
|
|
|
|
|
+.I %ADMINDIR%/status
|
|
Statuses of available packages. This file contains information about
|
|
Statuses of available packages. This file contains information about
|
|
whether a package is marked for removing or not, whether it is
|
|
whether a package is marked for removing or not, whether it is
|
|
installed or not, etc. See section \fBINFORMATION ABOUT PACKAGES\fP
|
|
installed or not, etc. See section \fBINFORMATION ABOUT PACKAGES\fP
|
|
@@ -984,14 +984,14 @@ be used instead for that):
|
|
\fB dpkg \-l \(aq*vi*\(aq\fP
|
|
\fB dpkg \-l \(aq*vi*\(aq\fP
|
|
.br
|
|
.br
|
|
|
|
|
|
-To see the entries in \fI/var/lib/dpkg/available\fP of two packages:
|
|
|
|
|
|
+To see the entries in \fI%ADMINDIR%/available\fP of two packages:
|
|
.br
|
|
.br
|
|
\fB dpkg \-\-print\-avail elvis vim | less\fP
|
|
\fB dpkg \-\-print\-avail elvis vim | less\fP
|
|
.br
|
|
.br
|
|
|
|
|
|
To search the listing of packages yourself:
|
|
To search the listing of packages yourself:
|
|
.br
|
|
.br
|
|
-\fB less /var/lib/dpkg/available\fP
|
|
|
|
|
|
+\fB less %ADMINDIR%/available\fP
|
|
.br
|
|
.br
|
|
|
|
|
|
To remove an installed elvis package:
|
|
To remove an installed elvis package:
|
|
@@ -1059,5 +1059,5 @@ and
|
|
\fBdpkg\-reconfigure\fP(8).
|
|
\fBdpkg\-reconfigure\fP(8).
|
|
.
|
|
.
|
|
.SH AUTHORS
|
|
.SH AUTHORS
|
|
-See \fI/usr/share/doc/dpkg/THANKS\fP for the list of people who have
|
|
|
|
|
|
+See \fI%PKGDOCDIR%/THANKS\fP for the list of people who have
|
|
contributed to \fBdpkg\fP.
|
|
contributed to \fBdpkg\fP.
|