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">
8 <!ENTITY % aptverbatiment SYSTEM
"apt-verbatim.ent">
20 <!-- The last update date -->
21 <date>9 August
2009</date>
25 <refentrytitle>apt-mark
</refentrytitle>
26 <manvolnum>8</manvolnum>
27 <refmiscinfo class=
"manual">APT
</refmiscinfo>
30 <!-- Man page title -->
32 <refname>apt-mark
</refname>
33 <refpurpose>mark/unmark a package as being automatically-installed
</refpurpose>
39 <command>apt-mark
</command>
40 <arg><option>-hv
</option></arg>
41 <arg><option>-f=
<replaceable>FILENAME
</replaceable></option></arg>
42 <group choice=
"plain">
45 <arg choice=
"plain">markauto
</arg>
46 <arg choice=
"plain">unmarkauto
</arg>
48 <arg choice=
"plain" rep=
"repeat"><replaceable>package
</replaceable></arg>
50 <arg choice=
"plain">showauto
</arg>
55 <refsect1><title>Description
</title>
56 <para><command>apt-mark
</command> will change whether a package has
57 been marked as being automatically installed.
60 When you request that a package is installed, and as a result
61 other packages are installed to satisfy its dependencies, the
62 dependencies are marked as being automatically installed. Once
63 these automatically installed packages are no longer depended on
64 by any manually installed packages, they will be removed by e.g.
65 <command>apt-get
</command> or
<command>aptitude
</command>.
68 <varlistentry><term>markauto
</term>
69 <listitem><para><literal>markauto
</literal> is used to mark a
70 package as being automatically installed, which will cause the
71 package to be removed when no more manually installed packages
72 depend on this package.
76 <varlistentry><term>unmarkauto
</term>
77 <listitem><para><literal>unmarkauto
</literal> is used to mark a
78 package as being manually installed, which will prevent the
79 package from being automatically removed if no other packages
84 <varlistentry><term>showauto
</term>
85 <listitem><para><literal>showauto
</literal> is used to print a
86 list of automatically installed packages with each package on a new line.
92 <refsect1><title>options
</title>
96 <term><option>-f=
<filename><replaceable>FILENAME
</replaceable></filename></option></term>
97 <term><option>--file=
<filename><replaceable>FILENAME
</replaceable></filename></option></term>
100 Read/Write package stats from
<filename><replaceable>FILENAME
</replaceable></filename>
101 instead of the default location, which
102 is
<filename>extended_status
</filename> in the directory defined
103 by the Configuration Item:
<literal>Dir::State
</literal>.
</para></listitem>
106 <varlistentry><term><option>-h
</option></term>
107 <term><option>--help
</option></term>
108 <listitem><para>Show a short usage summary.
114 <term><option>-v
</option></term>
115 <term><option>--version
</option></term>
116 <listitem><para>Show the program version.
125 <refsect1><title>Files
</title>
127 &file-extended_states;
131 <refsect1><title>See Also
</title>
132 <para>&apt-get;,
&aptitude;,&apt-conf;
</para>
135 <refsect1><title>Diagnostics
</title>
136 <para><command>apt-mark
</command> returns zero on normal operation, non-zero on error.
</para>