]> git.saurik.com Git - apt.git/blame - doc/apt-mark.8.xml
prepare unstable upload
[apt.git] / doc / apt-mark.8.xml
CommitLineData
75a3362b 1<?xml version="1.0" encoding="utf-8" standalone="no"?>
81cf16a2
DK
2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
75a3362b
OS
4
5<!ENTITY % aptent SYSTEM "apt.ent">
6%aptent;
7
0c1a7101
DK
8<!ENTITY % aptverbatiment SYSTEM "apt-verbatim.ent">
9%aptverbatiment;
10
75a3362b
OS
11]>
12
13<refentry>
14
15 <refentryinfo>
16 &apt-author.moconnor;
17 &apt-author.team;
18 &apt-email;
19 &apt-product;
20 <!-- The last update date -->
dabb215c 21 <date>2012-06-09T00:00:00Z</date>
75a3362b
OS
22 </refentryinfo>
23
24 <refmeta>
25 <refentrytitle>apt-mark</refentrytitle>
26 <manvolnum>8</manvolnum>
f0599b9c 27 <refmiscinfo class="manual">APT</refmiscinfo>
75a3362b
OS
28 </refmeta>
29
30 <!-- Man page title -->
31 <refnamediv>
32 <refname>apt-mark</refname>
62b17f74 33 <refpurpose>mark/unmark a package as being automatically-installed</refpurpose>
75a3362b
OS
34 </refnamediv>
35
6e8b4572
DK
36 &synopsis-command-apt-mark;
37
75a3362b
OS
38 <refsect1><title>Description</title>
39 <para><command>apt-mark</command> will change whether a package has
40 been marked as being automatically installed.
41 </para>
42 <para>
43 When you request that a package is installed, and as a result
44 other packages are installed to satisfy its dependencies, the
e3a1f08d 45 dependencies are marked as being automatically installed. Once
75a3362b 46 these automatically installed packages are no longer depended on
b2fa014b
DK
47 by any manually installed packages, they will be removed by e.g.
48 <command>apt-get</command> or <command>aptitude</command>.
75a3362b
OS
49 </para>
50 <variablelist>
2b9b27c3 51 <varlistentry><term><option>auto</option></term>
b40f2c3b 52 <listitem><para><literal>auto</literal> is used to mark a
75a3362b
OS
53 package as being automatically installed, which will cause the
54 package to be removed when no more manually installed packages
55 depend on this package.
56 </para></listitem>
57 </varlistentry>
58
2b9b27c3 59 <varlistentry><term><option>manual</option></term>
b40f2c3b 60 <listitem><para><literal>manual</literal> is used to mark a
75a3362b
OS
61 package as being manually installed, which will prevent the
62 package from being automatically removed if no other packages
63 depend on it.
64 </para></listitem>
65 </varlistentry>
b2fa014b 66
2b9b27c3 67 <varlistentry><term><option>hold</option></term>
a09e4489 68 <listitem><para><literal>hold</literal> is used to mark a
6072cbe1 69 package as held back, which will prevent the package from being
a09e4489
DK
70 automatically installed, upgraded or removed.
71 The command is only a wrapper around <command>dpkg --set-selections</command>
6072cbe1 72 and the state is therefore maintained by &dpkg; and not affected
d6aaf2a1 73 by the <option>--file</option> option.
a09e4489
DK
74 </para></listitem>
75 </varlistentry>
76
2b9b27c3 77 <varlistentry><term><option>unhold</option></term>
a09e4489
DK
78 <listitem><para><literal>unhold</literal> is used to cancel a
79 previously set hold on a package to allow all actions again.
80 </para></listitem>
81 </varlistentry>
82
2b9b27c3 83 <varlistentry><term><option>showauto</option></term>
b2fa014b 84 <listitem><para><literal>showauto</literal> is used to print a
5632b305 85 list of automatically installed packages with each package on a new line.
b40f2c3b
DK
86 All automatically installed packages will be listed if no package is given.
87 If packages are given only those which are automatically installed will be shown.
b2fa014b
DK
88 </para></listitem>
89 </varlistentry>
b40f2c3b 90
2b9b27c3 91 <varlistentry><term><option>showmanual</option></term>
b40f2c3b
DK
92 <listitem><para><literal>showmanual</literal> can be used in
93 the same way as <literal>showauto</literal> except that it will print
94 a list of manually installed packages instead.
95 </para></listitem>
96 </varlistentry>
97
2b9b27c3 98 <varlistentry><term><option>showhold</option></term>
a09e4489
DK
99 <listitem><para><literal>showhold</literal> is used to print a list
100 of packages on hold in the same way as for the other show commands.
101 </para></listitem>
102 </varlistentry>
103
104
75a3362b
OS
105 </variablelist>
106 </refsect1>
107
108 <refsect1><title>options</title>
109
110 <variablelist>
b2fa014b 111 <varlistentry>
aec22160
DK
112 <term><option>-f=&synopsis-param-filename;</option></term>
113 <term><option>--file=&synopsis-param-filename;</option></term>
75a3362b 114 <listitem><para>
2b9b27c3 115 Read/Write package stats from the filename given with the parameter
aec22160 116 &synopsis-param-filename; instead of from the default location, which
75a3362b
OS
117 is <filename>extended_status</filename> in the directory defined
118 by the Configuration Item: <literal>Dir::State</literal>.</para></listitem>
119 </varlistentry>
75a3362b 120
b40f2c3b 121 &apt-commonoptions;
75a3362b
OS
122 </variablelist>
123 </refsect1>
124
b2fa014b
DK
125 <refsect1><title>Files</title>
126 <variablelist>
d34690e1 127 &file-extended_states;
b2fa014b
DK
128 </variablelist>
129 </refsect1>
130
75a3362b 131 <refsect1><title>See Also</title>
aec22160 132 <para><phrase>&apt-get;,&aptitude;,&apt-conf;</phrase></para>
75a3362b
OS
133 </refsect1>
134
135 <refsect1><title>Diagnostics</title>
136 <para><command>apt-mark</command> returns zero on normal operation, non-zero on error.</para>
137 </refsect1>
138
139 &manbugs;
140
141</refentry>