]> git.saurik.com Git - apt.git/blame - doc/apt-mark.8.xml
add hidden config to set packages as Essential/Important
[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" [
5abbf5bb
DK
4<!ENTITY % aptent SYSTEM "apt.ent"> %aptent;
5<!ENTITY % aptverbatiment SYSTEM "apt-verbatim.ent"> %aptverbatiment;
6<!ENTITY % aptvendor SYSTEM "apt-vendor.ent"> %aptvendor;
75a3362b
OS
7]>
8
9<refentry>
10
11 <refentryinfo>
12 &apt-author.moconnor;
13 &apt-author.team;
14 &apt-email;
15 &apt-product;
16 <!-- The last update date -->
64e3414e 17 <date>2015-09-25T00:00:00Z</date>
75a3362b
OS
18 </refentryinfo>
19
20 <refmeta>
21 <refentrytitle>apt-mark</refentrytitle>
22 <manvolnum>8</manvolnum>
f0599b9c 23 <refmiscinfo class="manual">APT</refmiscinfo>
75a3362b
OS
24 </refmeta>
25
26 <!-- Man page title -->
27 <refnamediv>
28 <refname>apt-mark</refname>
64e3414e 29 <refpurpose>show, set and unset various settings for a package</refpurpose>
75a3362b
OS
30 </refnamediv>
31
6e8b4572
DK
32 &synopsis-command-apt-mark;
33
75a3362b 34 <refsect1><title>Description</title>
c4bfbe0d
JR
35 <para><command>apt-mark</command> can be used as a unified front-end to set
36 various settings for a package, such as marking a package as being
64e3414e
DK
37 automatically/manually installed or changing <command>dpkg</command>
38 selections such as hold, install, deinstall and purge which are respected
39 e.g. by <command>apt-get dselect-upgrade</command> or <command>aptitude</command>.
75a3362b 40 </para>
c4bfbe0d 41 </refsect1><refsect1><title>Automatically and Manually Installed Packages</title>
75a3362b
OS
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
c4bfbe0d 45 dependencies are marked as being automatically installed, while the
d04e44ac 46 package you installed explicitly is marked as manually installed.
c4bfbe0d 47 Once an automatically installed package is no longer depended on
64e3414e
DK
48 by any manually installed package it is considered no longer needed
49 and e.g. <command>apt-get</command> or <command>aptitude</command>
50 will at least suggest removing them.
75a3362b 51 </para>
64e3414e 52 <variablelist>
2b9b27c3 53 <varlistentry><term><option>auto</option></term>
b40f2c3b 54 <listitem><para><literal>auto</literal> is used to mark a
75a3362b
OS
55 package as being automatically installed, which will cause the
56 package to be removed when no more manually installed packages
57 depend on this package.
58 </para></listitem>
64e3414e 59 </varlistentry>
75a3362b 60
2b9b27c3 61 <varlistentry><term><option>manual</option></term>
b40f2c3b 62 <listitem><para><literal>manual</literal> is used to mark a
75a3362b
OS
63 package as being manually installed, which will prevent the
64 package from being automatically removed if no other packages
65 depend on it.
66 </para></listitem>
64e3414e 67 </varlistentry>
a09e4489 68
2b9b27c3 69 <varlistentry><term><option>showauto</option></term>
b2fa014b 70 <listitem><para><literal>showauto</literal> is used to print a
5632b305 71 list of automatically installed packages with each package on a new line.
b40f2c3b
DK
72 All automatically installed packages will be listed if no package is given.
73 If packages are given only those which are automatically installed will be shown.
b2fa014b 74 </para></listitem>
64e3414e 75 </varlistentry>
b40f2c3b 76
2b9b27c3 77 <varlistentry><term><option>showmanual</option></term>
b40f2c3b
DK
78 <listitem><para><literal>showmanual</literal> can be used in
79 the same way as <literal>showauto</literal> except that it will print
80 a list of manually installed packages instead.
81 </para></listitem>
64e3414e
DK
82 </varlistentry>
83 </variablelist>
84
85 <refsect2><title>Options</title>
86 <variablelist>
87 <varlistentry>
88 <term><option>-f=&synopsis-param-filename;</option></term>
89 <term><option>--file=&synopsis-param-filename;</option></term>
90 <listitem><para>
91 Read/Write package stats from the filename given with the parameter
92 &synopsis-param-filename; instead of from the default location, which
93 is <filename>extended_status</filename> in the directory defined
94 by the Configuration Item: <literal>Dir::State</literal>.
95 </para></listitem>
b40f2c3b 96 </varlistentry>
64e3414e
DK
97 </variablelist>
98 </refsect2>
b40f2c3b 99
c4bfbe0d 100 </refsect1><refsect1><title>Prevent Changes for a Package</title>
64e3414e
DK
101 <variablelist>
102 <varlistentry><term><option>hold</option></term>
103 <listitem><para><literal>hold</literal> is used to mark a
104 package as held back, which will prevent the package from being
105 automatically installed, upgraded or removed.
a09e4489 106 </para></listitem>
64e3414e 107 </varlistentry>
a09e4489 108
64e3414e
DK
109 <varlistentry><term><option>unhold</option></term>
110 <listitem><para><literal>unhold</literal> is used to cancel a
111 previously set hold on a package to allow all actions again.
112 </para></listitem>
113 </varlistentry>
a09e4489 114
64e3414e
DK
115 <varlistentry><term><option>showhold</option></term>
116 <listitem><para><literal>showhold</literal> is used to print a list
117 of packages on hold in the same way as for the other show commands.
118 </para></listitem>
75a3362b 119 </varlistentry>
64e3414e 120 </variablelist>
c4bfbe0d 121 </refsect1><refsect1><title>Schedule Packages for Install, Remove and Purge</title>
64e3414e 122 <para>
c4bfbe0d
JR
123 Some front-ends like <command>apt-get dselect-upgrade</command> can be used to
124 apply previously scheduled changes to the install state of packages. Such changes
125 can be scheduled with the <option>install</option>, <option>remove</option>
64e3414e
DK
126 (also known as <option>deinstall</option>) and <option>purge</option> commands.
127 Packages with a specific selection can be displayed with <option>showinstall</option>,
128 <option>showremove</option> and <option>showpurge</option> respectively.
129 More information about these so called dpkg selections can be found in &dpkg;.
130 </para>
131 </refsect1>
75a3362b 132
64e3414e
DK
133 <refsect1><title>Options</title>
134 <variablelist>
b40f2c3b 135 &apt-commonoptions;
75a3362b
OS
136 </variablelist>
137 </refsect1>
138
b2fa014b
DK
139 <refsect1><title>Files</title>
140 <variablelist>
d34690e1 141 &file-extended_states;
b2fa014b
DK
142 </variablelist>
143 </refsect1>
144
75a3362b 145 <refsect1><title>See Also</title>
aec22160 146 <para><phrase>&apt-get;,&aptitude;,&apt-conf;</phrase></para>
75a3362b
OS
147 </refsect1>
148
149 <refsect1><title>Diagnostics</title>
150 <para><command>apt-mark</command> returns zero on normal operation, non-zero on error.</para>
151 </refsect1>
152
153 &manbugs;
154
155</refentry>