3
.\" Author: Mike O\*(AqConnor
4
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
5
.\" Date: 09\ \&June\ \&2012
10
.TH "APT\-MARK" "8" "09\ \&June\ \&2012" "APT 1.0.8" "APT"
11
.\" -----------------------------------------------------------------
12
.\" * Define some portability stuff
13
.\" -----------------------------------------------------------------
14
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15
.\" http://bugs.debian.org/507673
16
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20
.\" -----------------------------------------------------------------
21
.\" * set default formatting
22
.\" -----------------------------------------------------------------
23
.\" disable hyphenation
25
.\" disable justification (adjust text to left margin only)
27
.\" -----------------------------------------------------------------
28
.\" * MAIN CONTENT STARTS HERE *
29
.\" -----------------------------------------------------------------
31
apt-mark \- mark/unmark a package as being automatically\-installed
33
.HP \w'\fBapt\-mark\fR\ 'u
34
\fBapt\-mark\fR [\fB\-f=\fR\fB\fIfilename\fR\fR] {auto\ |\ manual\ |\ showauto\ |\ showmanual}\ \fIpkg\fR... | {\-v\ |\ \-\-version} | {\-h\ |\ \-\-help}
38
will change whether a package has been marked as being automatically installed\&.
40
When you request that a package is installed, and as a result other packages are installed to satisfy its dependencies, the dependencies are marked as being automatically installed\&. Once these automatically installed packages are no longer depended on by any manually installed packages, they will be removed by e\&.g\&.
48
is used to mark a package as being automatically installed, which will cause the package to be removed when no more manually installed packages depend on this package\&.
54
is used to mark a package as being manually installed, which will prevent the package from being automatically removed if no other packages depend on it\&.
60
is used to mark a package as held back, which will prevent the package from being automatically installed, upgraded or removed\&. The command is only a wrapper around
61
\fBdpkg \-\-set\-selections\fR
62
and the state is therefore maintained by
64
and not affected by the
72
is used to cancel a previously set hold on a package to allow all actions again\&.
78
is used to print a list of automatically installed packages with each package on a new line\&. All automatically installed packages will be listed if no package is given\&. If packages are given only those which are automatically installed will be shown\&.
84
can be used in the same way as
86
except that it will print a list of manually installed packages instead\&.
92
is used to print a list of packages on hold in the same way as for the other show commands\&.
96
\fB\-f=\fR\fB\fIfilename\fR\fR, \fB\-\-file=\fR\fB\fIfilename\fR\fR
98
Read/Write package stats from the filename given with the parameter
100
instead of from the default location, which is
102
in the directory defined by the Configuration Item:
106
\fB\-h\fR, \fB\-\-help\fR
108
Show a short usage summary\&.
111
\fB\-v\fR, \fB\-\-version\fR
113
Show the program version\&.
116
\fB\-c\fR, \fB\-\-config\-file\fR
118
Configuration File; Specify a configuration file to use\&. The program will read the default configuration file and then this configuration file\&. If configuration settings need to be set before the default configuration files are parsed specify a file with the
120
environment variable\&. See
122
for syntax information\&.
125
\fB\-o\fR, \fB\-\-option\fR
127
Set a Configuration Option; This will set an arbitrary configuration option\&. The syntax is
128
\fB\-o Foo::Bar=bar\fR\&.
132
can be used multiple times to set different options\&.
136
/var/lib/apt/extended_states
138
Status list of auto\-installed packages\&. Configuration Item:
139
Dir::State::extended_states\&.
143
\fBapt-get\fR(8),\fBaptitude\fR(8),\fBapt.conf\fR(5)
147
returns zero on normal operation, non\-zero on error\&.
150
\m[blue]\fBAPT bug page\fR\m[]\&\s-2\u[1]\d\s+2\&. If you wish to report a bug in APT, please see
151
/usr/share/doc/debian/bug\-reporting\&.txt
157
\fBMike O\*(AqConnor\fR
168
\%http://bugs.debian.org/src:apt