/etc/apt/preferences
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sat, 09 Feb 2013 21:25:38 +0200
changeset 1459 3000c0f32807
parent 1458 836c8538e199
child 1460 59cb3aaa2fab
/etc/apt/preferences
debian-apt.rst
--- a/debian-apt.rst	Fri Feb 08 23:08:41 2013 +0200
+++ b/debian-apt.rst	Sat Feb 09 21:25:38 2013 +0200
@@ -11,13 +11,36 @@
 
 See man sources.list(5), apt.conf(5)::
 
-  /etc/apt/sources.list
-  /etc/apt/apt.conf
+``/etc/apt/sources.list``::
+
+  deb http://ftp.debian.org.ua/debian/ stable main contrib non-free
+  deb http://ftp2.debian.org.ua/debian/ testing main contrib non-free
+  deb http://ftp2.debian.org.ua/debian/ unstable main contrib non-free
+  deb http://ftp.uk.debian.org/debian/ experimental main contrib non-free
+  deb http://www.deb-multimedia.org testing main non-free
+
+``/etc/apt/preferences``::
+
+  Package: *
+  Pin: release a=stable
+  Pin-Priority: 800
+
+  Package: *
+  Pin: release a=testing
+  Pin-Priority: 900
+
+  Package: *
+  Pin: release a=unstable
+  Pin-Priority: 700
+
+  Package: *
+  Pin: release a=experimental
+  Pin-Priority: 600
 
 Setup backport.
 ===============
 
-Main backports archive you can find on www.backports.org.
+Main backports archive located at http://www.backports.org.
 
 To get packeges gpg sign key::
 
@@ -29,9 +52,6 @@
 Write where packeges places::
 
   $ cat /etc/apt/sources.list
-  deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official amd64 DVD Binary-2 20070407-12:15]/ etch contrib main
-  deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official amd64 DVD Binary-1 20070407-12:15]/ etch contrib main
-
   deb http://www.backports.org/debian/ etch-backports main contrib non-free
 
 Getting new keys for packages.