]> git.saurik.com Git - apt.git/blame - doc/apt-mark.8.xml
merged from lp:~donkult/apt/sid
[apt.git] / doc / apt-mark.8.xml
CommitLineData
75a3362b
OS
1<?xml version="1.0" encoding="utf-8" standalone="no"?>
2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
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 -->
b40f2c3b 21 <date>21 April 2011</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
36 <!-- Arguments -->
37 <refsynopsisdiv>
38 <cmdsynopsis>
b2fa014b
DK
39 <command>apt-mark</command>
40 <arg><option>-hv</option></arg>
41 <arg><option>-f=<replaceable>FILENAME</replaceable></option></arg>
42 <group choice="plain">
43 <arg choice="plain">
44 <group choice="req">
b40f2c3b
DK
45 <arg choice="plain">auto</arg>
46 <arg choice="plain">manual</arg>
47 <arg choice="plain">showauto</arg>
48 <arg choice="plain">showmanual</arg>
b2fa014b
DK
49 </group>
50 <arg choice="plain" rep="repeat"><replaceable>package</replaceable></arg>
51 </arg>
b2fa014b 52 </group>
75a3362b
OS
53 </cmdsynopsis>
54 </refsynopsisdiv>
55
56 <refsect1><title>Description</title>
57 <para><command>apt-mark</command> will change whether a package has
58 been marked as being automatically installed.
59 </para>
60 <para>
61 When you request that a package is installed, and as a result
62 other packages are installed to satisfy its dependencies, the
e3a1f08d 63 dependencies are marked as being automatically installed. Once
75a3362b 64 these automatically installed packages are no longer depended on
b2fa014b
DK
65 by any manually installed packages, they will be removed by e.g.
66 <command>apt-get</command> or <command>aptitude</command>.
75a3362b
OS
67 </para>
68 <variablelist>
b40f2c3b
DK
69 <varlistentry><term>auto</term>
70 <listitem><para><literal>auto</literal> is used to mark a
75a3362b
OS
71 package as being automatically installed, which will cause the
72 package to be removed when no more manually installed packages
73 depend on this package.
74 </para></listitem>
75 </varlistentry>
76
b40f2c3b
DK
77 <varlistentry><term>manual</term>
78 <listitem><para><literal>manual</literal> is used to mark a
75a3362b
OS
79 package as being manually installed, which will prevent the
80 package from being automatically removed if no other packages
81 depend on it.
82 </para></listitem>
83 </varlistentry>
b2fa014b 84
a09e4489
DK
85 <varlistentry><term>hold</term>
86 <listitem><para><literal>hold</literal> is used to mark a
87 package as hold back, which will prevent the package from being
88 automatically installed, upgraded or removed.
89 The command is only a wrapper around <command>dpkg --set-selections</command>
90 and the state is therefore maintained by &dpkg; and not effected
91 by the <option>--filename</option> option.
92 </para></listitem>
93 </varlistentry>
94
95 <varlistentry><term>unhold</term>
96 <listitem><para><literal>unhold</literal> is used to cancel a
97 previously set hold on a package to allow all actions again.
98 </para></listitem>
99 </varlistentry>
100
b2fa014b
DK
101 <varlistentry><term>showauto</term>
102 <listitem><para><literal>showauto</literal> is used to print a
5632b305 103 list of automatically installed packages with each package on a new line.
b40f2c3b
DK
104 All automatically installed packages will be listed if no package is given.
105 If packages are given only those which are automatically installed will be shown.
b2fa014b
DK
106 </para></listitem>
107 </varlistentry>
b40f2c3b
DK
108
109 <varlistentry><term>showmanual</term>
110 <listitem><para><literal>showmanual</literal> can be used in
111 the same way as <literal>showauto</literal> except that it will print
112 a list of manually installed packages instead.
113 </para></listitem>
114 </varlistentry>
115
a09e4489
DK
116 <varlistentry><term>showhold</term>
117 <listitem><para><literal>showhold</literal> is used to print a list
118 of packages on hold in the same way as for the other show commands.
119 </para></listitem>
120 </varlistentry>
121
122
75a3362b
OS
123 </variablelist>
124 </refsect1>
125
126 <refsect1><title>options</title>
127
128 <variablelist>
b2fa014b
DK
129 <varlistentry>
130 <term><option>-f=<filename><replaceable>FILENAME</replaceable></filename></option></term>
131 <term><option>--file=<filename><replaceable>FILENAME</replaceable></filename></option></term>
75a3362b
OS
132 <listitem><para>
133
b2fa014b 134 Read/Write package stats from <filename><replaceable>FILENAME</replaceable></filename>
75a3362b
OS
135 instead of the default location, which
136 is <filename>extended_status</filename> in the directory defined
137 by the Configuration Item: <literal>Dir::State</literal>.</para></listitem>
138 </varlistentry>
75a3362b 139
b40f2c3b 140 &apt-commonoptions;
75a3362b
OS
141 </variablelist>
142 </refsect1>
143
b2fa014b
DK
144 <refsect1><title>Files</title>
145 <variablelist>
d34690e1 146 &file-extended_states;
b2fa014b
DK
147 </variablelist>
148 </refsect1>
149
75a3362b 150 <refsect1><title>See Also</title>
b2fa014b 151 <para>&apt-get;,&aptitude;,&apt-conf;</para>
75a3362b
OS
152 </refsect1>
153
154 <refsect1><title>Diagnostics</title>
155 <para><command>apt-mark</command> returns zero on normal operation, non-zero on error.</para>
156 </refsect1>
157
158 &manbugs;
159
160</refentry>