debian-apt.rst
changeset 1320 aa6d2980b5fd
parent 1319 e080da368231
child 1321 baa1dd97c9e1
equal deleted inserted replaced
1319:e080da368231 1320:aa6d2980b5fd
     1 -*- mode: outline; coding: utf-8; -*-
       
     2 
       
     3 * Conf files.
       
     4 
       
     5 See man sources.list(5), apt.conf(5).
       
     6 
       
     7  /etc/apt/sources.list
       
     8  /etc/apt/apt.conf
       
     9 
       
    10 * Setup backport.
       
    11 
       
    12 Main backports archive you can find on www.backports.org.
       
    13 
       
    14 To get packeges gpg sign key:
       
    15 
       
    16   $ su
       
    17   ...
       
    18   $ wget -O - http://backports.org/debian/archive.key | apt-key add -
       
    19   $ ^D
       
    20 
       
    21 Write where packeges places:
       
    22 
       
    23   $ cat /etc/apt/sources.list
       
    24   deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official amd64 DVD Binary-2 20070407-12:15]/ etch contrib main
       
    25   deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official amd64 DVD Binary-1 20070407-12:15]/ etch contrib main
       
    26 
       
    27   deb http://www.backports.org/debian/ etch-backports main contrib non-free
       
    28 
       
    29 * Getting new keys for packages.
       
    30 
       
    31   $ sudo apt-get update
       
    32 ...
       
    33 W: There is no public key available for the following key IDs:
       
    34 9AA38DCD55BE302B
       
    35 W: GPG error: http://http.us.debian.org etch Release: The following signatures
       
    36 couldn't be verified because the public key is not available: NO_PUBKEY
       
    37 9AA38DCD55BE302B
       
    38 ...
       
    39 
       
    40   $ gpg --keyserver pgp.mit.edu --recv-key 9AA38DCD55BE302B \
       
    41 --keyserver-options http-proxy=http://user:pass@192.168.1.1:3128
       
    42 gpg: requesting key 55BE302B from hkp server pgp.mit.edu
       
    43 gpg: key 55BE302B: public key "Debian Archive Automatic Signing Key (5.0/lenny) <ftpmaster@debian.org>" imported
       
    44 gpg: no ultimately trusted keys found
       
    45 gpg: Total number processed: 1
       
    46 gpg:               imported: 1  (RSA: 1)
       
    47 
       
    48   $ gpg --export 9AA38DCD55BE302B | sudo apt-key add -
       
    49 OK
       
    50 
       
    51 * Install build dependency for package.
       
    52 
       
    53   $ apt-get install build-essential    # install dev LIBC and GCC C/C++
       
    54   $ sudo apt-get build-dep $package
       
    55 
       
    56 If all you want is checking what packages are needed to build a given package:
       
    57 
       
    58   $ apt-cache showsrc $package
       
    59 
       
    60 or check 'Build-Depends' attribute in
       
    61 
       
    62   $ apt-cache show $package
       
    63