]>
Commit | Line | Data |
---|---|---|
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 | ||
8 | ]> | |
9 | ||
10 | <refentry> | |
11 | ||
12 | <refentryinfo> | |
13 | &apt-author.moconnor; | |
14 | &apt-author.team; | |
15 | &apt-email; | |
16 | &apt-product; | |
17 | <!-- The last update date --> | |
18 | <date>2 November 2007</date> | |
19 | </refentryinfo> | |
20 | ||
21 | <refmeta> | |
22 | <refentrytitle>apt-mark</refentrytitle> | |
23 | <manvolnum>8</manvolnum> | |
24 | </refmeta> | |
25 | ||
26 | <!-- Man page title --> | |
27 | <refnamediv> | |
28 | <refname>apt-mark</refname> | |
29 | <refpurpose>mark/unmark a package as being automatically-installed</refpurpose> | |
30 | </refnamediv> | |
31 | ||
32 | <!-- Arguments --> | |
33 | <refsynopsisdiv> | |
34 | <cmdsynopsis> | |
35 | <command>apt-mark</command> | |
36 | <arg><option>-hv</option></arg> | |
37 | <arg><option>-f=<replaceable>FILENAME</replaceable></option></arg> | |
38 | <group choice="req"><arg>markauto</arg><arg>unmarkauto</arg></group> | |
39 | <arg choice="plain" rep="repeat"><replaceable>package</replaceable></arg> | |
40 | </cmdsynopsis> | |
41 | </refsynopsisdiv> | |
42 | ||
43 | <refsect1><title>Description</title> | |
44 | <para><command>apt-mark</command> will change whether a package has | |
45 | been marked as being automatically installed. | |
46 | </para> | |
47 | <para> | |
48 | When you request that a package is installed, and as a result | |
49 | other packages are installed to satisfy its dependencies, the | |
50 | dependencies are marked as being automatically installed. Once | |
51 | these automatically installed packages are no longer depended on | |
52 | by any manually installed packages, they will be removed. | |
53 | </para> | |
54 | <variablelist> | |
55 | <varlistentry><term>markauto</term> | |
56 | <listitem><para><literal>markauto</literal> is used to mark a | |
57 | package as being automatically installed, which will cause the | |
58 | package to be removed when no more manually installed packages | |
59 | depend on this package. | |
60 | </para></listitem> | |
61 | </varlistentry> | |
62 | ||
63 | <varlistentry><term>unmarkauto</term> | |
64 | <listitem><para><literal>unmarkauto</literal> is used to mark a | |
65 | package as being manually installed, which will prevent the | |
66 | package from being automatically removed if no other packages | |
67 | depend on it. | |
68 | </para></listitem> | |
69 | </varlistentry> | |
70 | </variablelist> | |
71 | </refsect1> | |
72 | ||
73 | <refsect1><title>options</title> | |
74 | ||
75 | <variablelist> | |
76 | <varlistentry><term><option>-f=<filename>FILENAME</filename></option></term><term><option>--file=<filename>FILENAME</filename></option></term> | |
77 | <listitem><para> | |
78 | ||
79 | Read/Write package stats from <filename>FILENAME</filename> | |
80 | instead of the default location, which | |
81 | is <filename>extended_status</filename> in the directory defined | |
82 | by the Configuration Item: <literal>Dir::State</literal>.</para></listitem> | |
83 | </varlistentry> | |
84 | ||
85 | <varlistentry><term><option>-h</option></term> | |
86 | <term><option>--help</option></term> | |
87 | <listitem><para>Show a short usage summary. | |
88 | </para> | |
89 | </listitem> | |
90 | </varlistentry> | |
91 | ||
92 | <varlistentry> | |
93 | <term><option>-v</option></term> | |
94 | <term><option>--version</option></term> | |
95 | <listitem><para>Show the program version. | |
96 | </para> | |
97 | </listitem> | |
98 | </varlistentry> | |
99 | ||
100 | ||
101 | </variablelist> | |
102 | </refsect1> | |
103 | ||
104 | <refsect1><title>See Also</title> | |
105 | <para>&apt-conf;</para> | |
106 | </refsect1> | |
107 | ||
108 | <refsect1><title>Diagnostics</title> | |
109 | <para><command>apt-mark</command> returns zero on normal operation, non-zero on error.</para> | |
110 | </refsect1> | |
111 | ||
112 | &manbugs; | |
113 | ||
114 | </refentry> |