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" [
5 <!ENTITY % aptent SYSTEM
"apt.ent">
17 <!-- The last update date -->
18 <date>9 August
2009</date>
22 <refentrytitle>apt-mark
</refentrytitle>
23 <manvolnum>8</manvolnum>
26 <!-- Man page title -->
28 <refname>apt-mark
</refname>
29 <refpurpose>mark/unmark a package as being automatically-installed
</refpurpose>
35 <command>apt-mark
</command>
36 <arg><option>-hv
</option></arg>
37 <arg><option>-f=
<replaceable>FILENAME
</replaceable></option></arg>
38 <group choice=
"plain">
41 <arg choice=
"plain">markauto
</arg>
42 <arg choice=
"plain">unmarkauto
</arg>
44 <arg choice=
"plain" rep=
"repeat"><replaceable>package
</replaceable></arg>
46 <arg choice=
"plain">showauto
</arg>
51 <refsect1><title>Description
</title>
52 <para><command>apt-mark
</command> will change whether a package has
53 been marked as being automatically installed.
56 When you request that a package is installed, and as a result
57 other packages are installed to satisfy its dependencies, the
58 dependencies are marked as being automatically installed. Once
59 these automatically installed packages are no longer depended on
60 by any manually installed packages, they will be removed by e.g.
61 <command>apt-get
</command> or
<command>aptitude
</command>.
64 <varlistentry><term>markauto
</term>
65 <listitem><para><literal>markauto
</literal> is used to mark a
66 package as being automatically installed, which will cause the
67 package to be removed when no more manually installed packages
68 depend on this package.
72 <varlistentry><term>unmarkauto
</term>
73 <listitem><para><literal>unmarkauto
</literal> is used to mark a
74 package as being manually installed, which will prevent the
75 package from being automatically removed if no other packages
80 <varlistentry><term>showauto
</term>
81 <listitem><para><literal>showauto
</literal> is used to print a
82 list of manually installed packages with each package on a new line.
88 <refsect1><title>options
</title>
92 <term><option>-f=
<filename><replaceable>FILENAME
</replaceable></filename></option></term>
93 <term><option>--file=
<filename><replaceable>FILENAME
</replaceable></filename></option></term>
96 Read/Write package stats from
<filename><replaceable>FILENAME
</replaceable></filename>
97 instead of the default location, which
98 is
<filename>extended_status
</filename> in the directory defined
99 by the Configuration Item:
<literal>Dir::State
</literal>.
</para></listitem>
102 <varlistentry><term><option>-h
</option></term>
103 <term><option>--help
</option></term>
104 <listitem><para>Show a short usage summary.
110 <term><option>-v
</option></term>
111 <term><option>--version
</option></term>
112 <listitem><para>Show the program version.
121 <refsect1><title>Files
</title>
123 <varlistentry><term><filename>/var/lib/apt/extended_states
</filename></term>
124 <listitem><para>Status list of auto-installed packages.
125 Configuration Item:
<literal>Dir::State
</literal>
126 sets the path to the
<filename>extended_states
</filename> file.
132 <refsect1><title>See Also
</title>
133 <para>&apt-get;,
&aptitude;,&apt-conf;
</para>
136 <refsect1><title>Diagnostics
</title>
137 <para><command>apt-mark
</command> returns zero on normal operation, non-zero on error.
</para>