debian-apt.rst
changeset 1459 3000c0f32807
parent 1346 a2fbf50a43f4
child 1460 59cb3aaa2fab
equal deleted inserted replaced
1458:836c8538e199 1459:3000c0f32807
     9 Conf files.
     9 Conf files.
    10 ===========
    10 ===========
    11 
    11 
    12 See man sources.list(5), apt.conf(5)::
    12 See man sources.list(5), apt.conf(5)::
    13 
    13 
    14   /etc/apt/sources.list
    14 ``/etc/apt/sources.list``::
    15   /etc/apt/apt.conf
    15 
       
    16   deb http://ftp.debian.org.ua/debian/ stable main contrib non-free
       
    17   deb http://ftp2.debian.org.ua/debian/ testing main contrib non-free
       
    18   deb http://ftp2.debian.org.ua/debian/ unstable main contrib non-free
       
    19   deb http://ftp.uk.debian.org/debian/ experimental main contrib non-free
       
    20   deb http://www.deb-multimedia.org testing main non-free
       
    21 
       
    22 ``/etc/apt/preferences``::
       
    23 
       
    24   Package: *
       
    25   Pin: release a=stable
       
    26   Pin-Priority: 800
       
    27 
       
    28   Package: *
       
    29   Pin: release a=testing
       
    30   Pin-Priority: 900
       
    31 
       
    32   Package: *
       
    33   Pin: release a=unstable
       
    34   Pin-Priority: 700
       
    35 
       
    36   Package: *
       
    37   Pin: release a=experimental
       
    38   Pin-Priority: 600
    16 
    39 
    17 Setup backport.
    40 Setup backport.
    18 ===============
    41 ===============
    19 
    42 
    20 Main backports archive you can find on www.backports.org.
    43 Main backports archive located at http://www.backports.org.
    21 
    44 
    22 To get packeges gpg sign key::
    45 To get packeges gpg sign key::
    23 
    46 
    24   $ su
    47   $ su
    25   ...
    48   ...
    27   $ ^D
    50   $ ^D
    28 
    51 
    29 Write where packeges places::
    52 Write where packeges places::
    30 
    53 
    31   $ cat /etc/apt/sources.list
    54   $ cat /etc/apt/sources.list
    32   deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official amd64 DVD Binary-2 20070407-12:15]/ etch contrib main
       
    33   deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official amd64 DVD Binary-1 20070407-12:15]/ etch contrib main
       
    34 
       
    35   deb http://www.backports.org/debian/ etch-backports main contrib non-free
    55   deb http://www.backports.org/debian/ etch-backports main contrib non-free
    36 
    56 
    37 Getting new keys for packages.
    57 Getting new keys for packages.
    38 ==============================
    58 ==============================
    39 ::
    59 ::