apt_preferences.5.xml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637
  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. <!ENTITY % aptent SYSTEM "apt.ent">
  5. %aptent;
  6. ]>
  7. <refentry>
  8. <refentryinfo>
  9. &apt-author.team;
  10. &apt-email;
  11. &apt-product;
  12. <!-- The last update date -->
  13. <date>04 May 2009</date>
  14. </refentryinfo>
  15. <refmeta>
  16. <refentrytitle>apt_preferences</refentrytitle>
  17. <manvolnum>5</manvolnum>
  18. <refmiscinfo class="manual">APT</refmiscinfo>
  19. </refmeta>
  20. <!-- Man page title -->
  21. <refnamediv>
  22. <refname>apt_preferences</refname>
  23. <refpurpose>Preference control file for APT</refpurpose>
  24. </refnamediv>
  25. <refsect1>
  26. <title>Description</title>
  27. <para>The APT preferences file <filename>/etc/apt/preferences</filename>
  28. and the fragment files in the <filename>/etc/apt/preferences.d/</filename>
  29. folder can be used to control which versions of packages will be selected
  30. for installation.</para>
  31. <para>Several versions of a package may be available for installation when
  32. the &sources-list; file contains references to more than one distribution
  33. (for example, <literal>stable</literal> and <literal>testing</literal>).
  34. APT assigns a priority to each version that is available.
  35. Subject to dependency constraints, <command>apt-get</command> selects the
  36. version with the highest priority for installation.
  37. The APT preferences file overrides the priorities that APT assigns to
  38. package versions by default, thus giving the user control over which
  39. one is selected for installation.</para>
  40. <para>Several instances of the same version of a package may be available when
  41. the &sources-list; file contains references to more than one source.
  42. In this case <command>apt-get</command> downloads the instance listed
  43. earliest in the &sources-list; file.
  44. The APT preferences file does not affect the choice of instance, only
  45. the choice of version.</para>
  46. <para>Note that the files in the <filename>/etc/apt/preferences.d</filename>
  47. directory are parsed in alphanumeric ascending order and need to obey the
  48. following naming convention: The files have no or "<literal>pref</literal>"
  49. as filename extension and which only contain alphanumeric, hyphen (-),
  50. underscore (_) and period (.) characters - otherwise they will be silently
  51. ignored.</para>
  52. <refsect2><title>APT's Default Priority Assignments</title>
  53. <para>If there is no preferences file or if there is no entry in the file
  54. that applies to a particular version then the priority assigned to that
  55. version is the priority of the distribution to which that version
  56. belongs. It is possible to single out a distribution, "the target release",
  57. which receives a higher priority than other distributions do by default.
  58. The target release can be set on the <command>apt-get</command> command
  59. line or in the APT configuration file <filename>/etc/apt/apt.conf</filename>.
  60. Note that this has precedence over any general priority you set in the
  61. <filename>/etc/apt/preferences</filename> file described later, but not
  62. over specifically pinned packages.
  63. For example,
  64. <programlisting>
  65. <command>apt-get install -t testing <replaceable>some-package</replaceable></command>
  66. </programlisting>
  67. <programlisting>
  68. APT::Default-Release "stable";
  69. </programlisting>
  70. </para>
  71. <para>If the target release has been specified then APT uses the following
  72. algorithm to set the priorities of the versions of a package. Assign:
  73. <variablelist>
  74. <varlistentry>
  75. <term>priority 100</term>
  76. <listitem><simpara>to the version that is already installed (if any).</simpara></listitem>
  77. </varlistentry>
  78. <varlistentry>
  79. <term>priority 500</term>
  80. <listitem><simpara>to the versions that are not installed and do not belong to the target release.</simpara></listitem>
  81. </varlistentry>
  82. <varlistentry>
  83. <term>priority 990</term>
  84. <listitem><simpara>to the versions that are not installed and belong to the target release.</simpara></listitem>
  85. </varlistentry>
  86. </variablelist>
  87. </para>
  88. <para>If the target release has not been specified then APT simply assigns
  89. priority 100 to all installed package versions and priority 500 to all
  90. uninstalled package versions.</para>
  91. <para>APT then applies the following rules, listed in order of precedence,
  92. to determine which version of a package to install.
  93. <itemizedlist>
  94. <listitem><simpara>Never downgrade unless the priority of an available
  95. version exceeds 1000. ("Downgrading" is installing a less recent version
  96. of a package in place of a more recent version. Note that none of APT's
  97. default priorities exceeds 1000; such high priorities can only be set in
  98. the preferences file. Note also that downgrading a package
  99. can be risky.)</simpara></listitem>
  100. <listitem><simpara>Install the highest priority version.</simpara></listitem>
  101. <listitem><simpara>If two or more versions have the same priority,
  102. install the most recent one (that is, the one with the higher version
  103. number).</simpara></listitem>
  104. <listitem><simpara>If two or more versions have the same priority and
  105. version number but either the packages differ in some of their metadata or the
  106. <literal>--reinstall</literal> option is given, install the uninstalled one.</simpara></listitem>
  107. </itemizedlist>
  108. </para>
  109. <para>In a typical situation, the installed version of a package (priority 100)
  110. is not as recent as one of the versions available from the sources listed in
  111. the &sources-list; file (priority 500 or 990). Then the package will be upgraded
  112. when <command>apt-get install <replaceable>some-package</replaceable></command>
  113. or <command>apt-get upgrade</command> is executed.
  114. </para>
  115. <para>More rarely, the installed version of a package is <emphasis>more</emphasis> recent
  116. than any of the other available versions. The package will not be downgraded
  117. when <command>apt-get install <replaceable>some-package</replaceable></command>
  118. or <command>apt-get upgrade</command> is executed.</para>
  119. <para>Sometimes the installed version of a package is more recent than the
  120. version belonging to the target release, but not as recent as a version
  121. belonging to some other distribution. Such a package will indeed be upgraded
  122. when <command>apt-get install <replaceable>some-package</replaceable></command>
  123. or <command>apt-get upgrade</command> is executed,
  124. because at least <emphasis>one</emphasis> of the available versions has a higher
  125. priority than the installed version.</para>
  126. </refsect2>
  127. <refsect2><title>The Effect of APT Preferences</title>
  128. <para>The APT preferences file allows the system administrator to control the
  129. assignment of priorities. The file consists of one or more multi-line records
  130. separated by blank lines. Records can have one of two forms, a specific form
  131. and a general form.
  132. <itemizedlist>
  133. <listitem>
  134. <simpara>The specific form assigns a priority (a "Pin-Priority") to one or more
  135. specified packages and specified version or version range. For example,
  136. the following record assigns a high priority to all versions of
  137. the <filename>perl</filename> package whose version number begins with "<literal>5.8</literal>".
  138. Multiple packages can be separated by spaces.</simpara>
  139. <programlisting>
  140. Package: perl
  141. Pin: version 5.8*
  142. Pin-Priority: 1001
  143. </programlisting>
  144. </listitem>
  145. <listitem><simpara>The general form assigns a priority to all of the package versions in a
  146. given distribution (that is, to all the versions of packages that are
  147. listed in a certain <filename>Release</filename> file) or to all of the package
  148. versions coming from a particular Internet site, as identified by the
  149. site's fully qualified domain name.</simpara>
  150. <simpara>This general-form entry in the APT preferences file applies only
  151. to groups of packages. For example, the following record assigns a high
  152. priority to all package versions available from the local site.</simpara>
  153. <programlisting>
  154. Package: *
  155. Pin: origin ""
  156. Pin-Priority: 999
  157. </programlisting>
  158. <simpara>A note of caution: the keyword used here is "<literal>origin</literal>".
  159. This should not be confused with the Origin of a distribution as
  160. specified in a <filename>Release</filename> file. What follows the "Origin:" tag
  161. in a <filename>Release</filename> file is not an Internet address
  162. but an author or vendor name, such as "Debian" or "Ximian".</simpara>
  163. <simpara>The following record assigns a low priority to all package versions
  164. belonging to any distribution whose Archive name is "<literal>unstable</literal>".</simpara>
  165. <programlisting>
  166. Package: *
  167. Pin: release a=unstable
  168. Pin-Priority: 50
  169. </programlisting>
  170. <simpara>The following record assigns a high priority to all package versions
  171. belonging to any distribution whose Codename is "<literal>squeeze</literal>".</simpara>
  172. <programlisting>
  173. Package: *
  174. Pin: release n=squeeze
  175. Pin-Priority: 900
  176. </programlisting>
  177. <simpara>The following record assigns a high priority to all package versions
  178. belonging to any release whose Archive name is "<literal>stable</literal>"
  179. and whose release Version number is "<literal>3.0</literal>".</simpara>
  180. <programlisting>
  181. Package: *
  182. Pin: release a=stable, v=3.0
  183. Pin-Priority: 500
  184. </programlisting>
  185. </listitem>
  186. </itemizedlist>
  187. </para>
  188. </refsect2>
  189. <refsect2>
  190. <title>How APT Interprets Priorities</title>
  191. <para>
  192. Priorities (P) assigned in the APT preferences file must be positive
  193. or negative integers. They are interpreted as follows (roughly speaking):
  194. <variablelist>
  195. <varlistentry>
  196. <term>P &gt; 1000</term>
  197. <listitem><simpara>causes a version to be installed even if this
  198. constitutes a downgrade of the package</simpara></listitem>
  199. </varlistentry>
  200. <varlistentry>
  201. <term>990 &lt; P &lt;=1000</term>
  202. <listitem><simpara>causes a version to be installed
  203. even if it does not come from the target release,
  204. unless the installed version is more recent</simpara></listitem>
  205. </varlistentry>
  206. <varlistentry>
  207. <term>500 &lt; P &lt;=990</term>
  208. <listitem><simpara>causes a version to be installed
  209. unless there is a version available belonging to the target release
  210. or the installed version is more recent</simpara></listitem>
  211. </varlistentry>
  212. <varlistentry>
  213. <term>100 &lt; P &lt;=500</term>
  214. <listitem><simpara>causes a version to be installed
  215. unless there is a version available belonging to some other
  216. distribution or the installed version is more recent</simpara></listitem>
  217. </varlistentry>
  218. <varlistentry>
  219. <term>0 &lt; P &lt;=100</term>
  220. <listitem><simpara>causes a version to be installed
  221. only if there is no installed version of the package</simpara></listitem>
  222. </varlistentry>
  223. <varlistentry>
  224. <term>P &lt; 0</term>
  225. <listitem><simpara>prevents the version from being installed</simpara></listitem>
  226. </varlistentry>
  227. </variablelist>
  228. </para>
  229. <para>If any specific-form records match an available package version then the
  230. first such record determines the priority of the package version.
  231. Failing that,
  232. if any general-form records match an available package version then the
  233. first such record determines the priority of the package version.</para>
  234. <para>For example, suppose the APT preferences file contains the three
  235. records presented earlier:</para>
  236. <programlisting>
  237. Package: perl
  238. Pin: version 5.8*
  239. Pin-Priority: 1001
  240. Package: *
  241. Pin: origin ""
  242. Pin-Priority: 999
  243. Package: *
  244. Pin: release unstable
  245. Pin-Priority: 50
  246. </programlisting>
  247. <para>Then:
  248. <itemizedlist>
  249. <listitem><simpara>The most recent available version of the <literal>perl</literal>
  250. package will be installed, so long as that version's version number begins
  251. with "<literal>5.8</literal>". If <emphasis>any</emphasis> 5.8* version of <literal>perl</literal> is
  252. available and the installed version is 5.9*, then <literal>perl</literal> will be
  253. downgraded.</simpara></listitem>
  254. <listitem><simpara>A version of any package other than <literal>perl</literal>
  255. that is available from the local system has priority over other versions,
  256. even versions belonging to the target release.
  257. </simpara></listitem>
  258. <listitem><simpara>A version of a package whose origin is not the local
  259. system but some other site listed in &sources-list; and which belongs to
  260. an <literal>unstable</literal> distribution is only installed if it is selected
  261. for installation and no version of the package is already installed.
  262. </simpara></listitem>
  263. </itemizedlist>
  264. </para>
  265. </refsect2>
  266. <refsect2>
  267. <title>Determination of Package Version and Distribution Properties</title>
  268. <para>The locations listed in the &sources-list; file should provide
  269. <filename>Packages</filename> and <filename>Release</filename> files
  270. to describe the packages available at that location. </para>
  271. <para>The <filename>Packages</filename> file is normally found in the directory
  272. <filename>.../dists/<replaceable>dist-name</replaceable>/<replaceable>component</replaceable>/<replaceable>arch</replaceable></filename>:
  273. for example, <filename>.../dists/stable/main/binary-i386/Packages</filename>.
  274. It consists of a series of multi-line records, one for each package available
  275. in that directory. Only two lines in each record are relevant for setting
  276. APT priorities:
  277. <variablelist>
  278. <varlistentry>
  279. <term>the <literal>Package:</literal> line</term>
  280. <listitem><simpara>gives the package name</simpara></listitem>
  281. </varlistentry>
  282. <varlistentry>
  283. <term>the <literal>Version:</literal> line</term>
  284. <listitem><simpara>gives the version number for the named package</simpara></listitem>
  285. </varlistentry>
  286. </variablelist>
  287. </para>
  288. <para>The <filename>Release</filename> file is normally found in the directory
  289. <filename>.../dists/<replaceable>dist-name</replaceable></filename>:
  290. for example, <filename>.../dists/stable/Release</filename>,
  291. or <filename>.../dists/woody/Release</filename>.
  292. It consists of a single multi-line record which applies to <emphasis>all</emphasis> of
  293. the packages in the directory tree below its parent. Unlike the
  294. <filename>Packages</filename> file, nearly all of the lines in a <filename>Release</filename>
  295. file are relevant for setting APT priorities:
  296. <variablelist>
  297. <varlistentry>
  298. <term>the <literal>Archive:</literal> or <literal>Suite:</literal> line</term>
  299. <listitem><simpara>names the archive to which all the packages
  300. in the directory tree belong. For example, the line
  301. "Archive: stable" or
  302. "Suite: stable"
  303. specifies that all of the packages in the directory
  304. tree below the parent of the <filename>Release</filename> file are in a
  305. <literal>stable</literal> archive. Specifying this value in the APT preferences file
  306. would require the line:
  307. </simpara>
  308. <programlisting>
  309. Pin: release a=stable
  310. </programlisting>
  311. </listitem>
  312. </varlistentry>
  313. <varlistentry>
  314. <term>the <literal>Codename:</literal> line</term>
  315. <listitem><simpara>names the codename to which all the packages
  316. in the directory tree belong. For example, the line
  317. "Codename: squeeze"
  318. specifies that all of the packages in the directory
  319. tree below the parent of the <filename>Release</filename> file belong to a version named
  320. <literal>squeeze</literal>. Specifying this value in the APT preferences file
  321. would require the line:
  322. </simpara>
  323. <programlisting>
  324. Pin: release n=squeeze
  325. </programlisting>
  326. </listitem>
  327. </varlistentry>
  328. <varlistentry>
  329. <term>the <literal>Version:</literal> line</term>
  330. <listitem><simpara>names the release version. For example, the
  331. packages in the tree might belong to Debian GNU/Linux release
  332. version 3.0. Note that there is normally no version number for the
  333. <literal>testing</literal> and <literal>unstable</literal> distributions because they
  334. have not been released yet. Specifying this in the APT preferences
  335. file would require one of the following lines.
  336. </simpara>
  337. <programlisting>
  338. Pin: release v=3.0
  339. Pin: release a=stable, v=3.0
  340. Pin: release 3.0
  341. </programlisting>
  342. </listitem>
  343. </varlistentry>
  344. <varlistentry>
  345. <term>the <literal>Component:</literal> line</term>
  346. <listitem><simpara>names the licensing component associated with the
  347. packages in the directory tree of the <filename>Release</filename> file.
  348. For example, the line "Component: main" specifies that
  349. all the packages in the directory tree are from the <literal>main</literal>
  350. component, which entails that they are licensed under terms listed
  351. in the Debian Free Software Guidelines. Specifying this component
  352. in the APT preferences file would require the line:
  353. </simpara>
  354. <programlisting>
  355. Pin: release c=main
  356. </programlisting>
  357. </listitem>
  358. </varlistentry>
  359. <varlistentry>
  360. <term>the <literal>Origin:</literal> line</term>
  361. <listitem><simpara>names the originator of the packages in the
  362. directory tree of the <filename>Release</filename> file. Most commonly, this is
  363. <literal>Debian</literal>. Specifying this origin in the APT preferences file
  364. would require the line:
  365. </simpara>
  366. <programlisting>
  367. Pin: release o=Debian
  368. </programlisting>
  369. </listitem>
  370. </varlistentry>
  371. <varlistentry>
  372. <term>the <literal>Label:</literal> line</term>
  373. <listitem><simpara>names the label of the packages in the directory tree
  374. of the <filename>Release</filename> file. Most commonly, this is
  375. <literal>Debian</literal>. Specifying this label in the APT preferences file
  376. would require the line:
  377. </simpara>
  378. <programlisting>
  379. Pin: release l=Debian
  380. </programlisting>
  381. </listitem>
  382. </varlistentry>
  383. </variablelist>
  384. </para>
  385. <para>All of the <filename>Packages</filename> and <filename>Release</filename>
  386. files retrieved from locations listed in the &sources-list; file are stored
  387. in the directory <filename>/var/lib/apt/lists</filename>, or in the file named
  388. by the variable <literal>Dir::State::Lists</literal> in the <filename>apt.conf</filename> file.
  389. For example, the file
  390. <filename>debian.lcs.mit.edu_debian_dists_unstable_contrib_binary-i386_Release</filename>
  391. contains the <filename>Release</filename> file retrieved from the site
  392. <literal>debian.lcs.mit.edu</literal> for <literal>binary-i386</literal> architecture
  393. files from the <literal>contrib</literal> component of the <literal>unstable</literal>
  394. distribution.</para>
  395. </refsect2>
  396. <refsect2>
  397. <title>Optional Lines in an APT Preferences Record</title>
  398. <para>Each record in the APT preferences file can optionally begin with
  399. one or more lines beginning with the word <literal>Explanation:</literal>.
  400. This provides a place for comments.</para>
  401. <para>The <literal>Pin-Priority:</literal> line in each APT preferences record is
  402. optional. If omitted, APT assigns a priority of 1 less than the last value
  403. specified on a line beginning with <literal>Pin-Priority: release ...</literal>.</para>
  404. </refsect2>
  405. </refsect1>
  406. <refsect1>
  407. <title>Examples</title>
  408. <refsect2>
  409. <title>Tracking Stable</title>
  410. <para>The following APT preferences file will cause APT to assign a
  411. priority higher than the default (500) to all package versions belonging
  412. to a <literal>stable</literal> distribution and a prohibitively low priority to
  413. package versions belonging to other <literal>Debian</literal> distributions.
  414. <programlisting>
  415. Explanation: Uninstall or do not install any Debian-originated
  416. Explanation: package versions other than those in the stable distro
  417. Package: *
  418. Pin: release a=stable
  419. Pin-Priority: 900
  420. Package: *
  421. Pin: release o=Debian
  422. Pin-Priority: -10
  423. </programlisting>
  424. </para>
  425. <para>With a suitable &sources-list; file and the above preferences file,
  426. any of the following commands will cause APT to upgrade to the
  427. latest <literal>stable</literal> version(s).
  428. <programlisting>
  429. apt-get install <replaceable>package-name</replaceable>
  430. apt-get upgrade
  431. apt-get dist-upgrade
  432. </programlisting>
  433. </para>
  434. <para>The following command will cause APT to upgrade the specified
  435. package to the latest version from the <literal>testing</literal> distribution;
  436. the package will not be upgraded again unless this command is given
  437. again.
  438. <programlisting>
  439. apt-get install <replaceable>package</replaceable>/testing
  440. </programlisting>
  441. </para>
  442. </refsect2>
  443. <refsect2>
  444. <title>Tracking Testing or Unstable</title>
  445. <para>The following APT preferences file will cause APT to assign
  446. a high priority to package versions from the <literal>testing</literal>
  447. distribution, a lower priority to package versions from the
  448. <literal>unstable</literal> distribution, and a prohibitively low priority
  449. to package versions from other <literal>Debian</literal> distributions.
  450. <programlisting>
  451. Package: *
  452. Pin: release a=testing
  453. Pin-Priority: 900
  454. Package: *
  455. Pin: release a=unstable
  456. Pin-Priority: 800
  457. Package: *
  458. Pin: release o=Debian
  459. Pin-Priority: -10
  460. </programlisting>
  461. </para>
  462. <para>With a suitable &sources-list; file and the above preferences file,
  463. any of the following commands will cause APT to upgrade to the latest
  464. <literal>testing</literal> version(s).
  465. <programlisting>
  466. apt-get install <replaceable>package-name</replaceable>
  467. apt-get upgrade
  468. apt-get dist-upgrade
  469. </programlisting>
  470. </para>
  471. <para>The following command will cause APT to upgrade the specified
  472. package to the latest version from the <literal>unstable</literal> distribution.
  473. Thereafter, <command>apt-get upgrade</command> will upgrade
  474. the package to the most recent <literal>testing</literal> version if that is
  475. more recent than the installed version, otherwise, to the most recent
  476. <literal>unstable</literal> version if that is more recent than the installed
  477. version.
  478. <programlisting>
  479. apt-get install <replaceable>package</replaceable>/unstable
  480. </programlisting>
  481. </para>
  482. </refsect2>
  483. <refsect2>
  484. <title>Tracking the evolution of a codename release</title>
  485. <para>The following APT preferences file will cause APT to assign a
  486. priority higher than the default (500) to all package versions belonging
  487. to a specified codename of a distribution and a prohibitively low priority to
  488. package versions belonging to other <literal>Debian</literal> distributions,
  489. codenames and archives.
  490. Note that with this APT preference APT will follow the migration of a release
  491. from the archive <literal>testing</literal> to <literal>stable</literal> and
  492. later <literal>oldstable</literal>. If you want to follow for example the progress
  493. in <literal>testing</literal> notwithstanding the codename changes you should use
  494. the example configurations above.
  495. <programlisting>
  496. Explanation: Uninstall or do not install any Debian-originated package versions
  497. Explanation: other than those in the distribution codenamed with squeeze or sid
  498. Package: *
  499. Pin: release n=squeeze
  500. Pin-Priority: 900
  501. Explanation: Debian unstable is always codenamed with sid
  502. Package: *
  503. Pin: release a=sid
  504. Pin-Priority: 800
  505. Package: *
  506. Pin: release o=Debian
  507. Pin-Priority: -10
  508. </programlisting>
  509. </para>
  510. <para>With a suitable &sources-list; file and the above preferences file,
  511. any of the following commands will cause APT to upgrade to the
  512. latest version(s) in the release codenamed with <literal>squeeze</literal>.
  513. <programlisting>
  514. apt-get install <replaceable>package-name</replaceable>
  515. apt-get upgrade
  516. apt-get dist-upgrade
  517. </programlisting>
  518. </para>
  519. <para>The following command will cause APT to upgrade the specified
  520. package to the latest version from the <literal>sid</literal> distribution.
  521. Thereafter, <command>apt-get upgrade</command> will upgrade
  522. the package to the most recent <literal>squeeze</literal> version if that is
  523. more recent than the installed version, otherwise, to the most recent
  524. <literal>sid</literal> version if that is more recent than the installed
  525. version.
  526. <programlisting>
  527. apt-get install <replaceable>package</replaceable>/sid
  528. </programlisting>
  529. </para>
  530. </refsect2>
  531. </refsect1>
  532. <refsect1>
  533. <title>Files</title>
  534. <variablelist>
  535. &file-preferences;
  536. </variablelist>
  537. </refsect1>
  538. <refsect1>
  539. <title>See Also</title>
  540. <para>&apt-get; &apt-cache; &apt-conf; &sources-list;
  541. </para>
  542. </refsect1>
  543. &manbugs;
  544. </refentry>