author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Sat, 03 Sep 2011 00:29:04 +0300 | |
changeset 972 | 3bc1be78ac25 |
parent 899 | 7b4265c8d324 |
permissions | -rw-r--r-- |
899
7b4265c8d324
Set fill-column as directory local var.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
821
diff
changeset
|
1 |
-*- mode: outline; coding: utf-8; -*- |
0 | 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 |
||
118
9c1fe682896e
Getting new keys for packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
0
diff
changeset
|
29 |
* Getting new keys for packages. |
9c1fe682896e
Getting new keys for packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
0
diff
changeset
|
30 |
|
9c1fe682896e
Getting new keys for packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
0
diff
changeset
|
31 |
$ sudo apt-get update |
9c1fe682896e
Getting new keys for packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
0
diff
changeset
|
32 |
... |
9c1fe682896e
Getting new keys for packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
0
diff
changeset
|
33 |
W: There is no public key available for the following key IDs: |
9c1fe682896e
Getting new keys for packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
0
diff
changeset
|
34 |
9AA38DCD55BE302B |
9c1fe682896e
Getting new keys for packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
0
diff
changeset
|
35 |
W: GPG error: http://http.us.debian.org etch Release: The following signatures |
9c1fe682896e
Getting new keys for packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
0
diff
changeset
|
36 |
couldn't be verified because the public key is not available: NO_PUBKEY |
9c1fe682896e
Getting new keys for packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
0
diff
changeset
|
37 |
9AA38DCD55BE302B |
9c1fe682896e
Getting new keys for packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
0
diff
changeset
|
38 |
... |
9c1fe682896e
Getting new keys for packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
0
diff
changeset
|
39 |
|
9c1fe682896e
Getting new keys for packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
0
diff
changeset
|
40 |
$ gpg --keyserver pgp.mit.edu --recv-key 9AA38DCD55BE302B \ |
9c1fe682896e
Getting new keys for packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
0
diff
changeset
|
41 |
--keyserver-options http-proxy=http://user:pass@192.168.1.1:3128 |
9c1fe682896e
Getting new keys for packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
0
diff
changeset
|
42 |
gpg: requesting key 55BE302B from hkp server pgp.mit.edu |
9c1fe682896e
Getting new keys for packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
0
diff
changeset
|
43 |
gpg: key 55BE302B: public key "Debian Archive Automatic Signing Key (5.0/lenny) <ftpmaster@debian.org>" imported |
9c1fe682896e
Getting new keys for packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
0
diff
changeset
|
44 |
gpg: no ultimately trusted keys found |
9c1fe682896e
Getting new keys for packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
0
diff
changeset
|
45 |
gpg: Total number processed: 1 |
9c1fe682896e
Getting new keys for packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
0
diff
changeset
|
46 |
gpg: imported: 1 (RSA: 1) |
9c1fe682896e
Getting new keys for packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
0
diff
changeset
|
47 |
|
9c1fe682896e
Getting new keys for packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
0
diff
changeset
|
48 |
$ gpg --export 9AA38DCD55BE302B | sudo apt-key add - |
9c1fe682896e
Getting new keys for packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
0
diff
changeset
|
49 |
OK |
820
f4e4c7bef954
Install build dependency for package.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
735
diff
changeset
|
50 |
|
f4e4c7bef954
Install build dependency for package.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
735
diff
changeset
|
51 |
* Install build dependency for package. |
f4e4c7bef954
Install build dependency for package.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
735
diff
changeset
|
52 |
|
f4e4c7bef954
Install build dependency for package.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
735
diff
changeset
|
53 |
$ apt-get install build-essential # install dev LIBC and GCC C/C++ |
f4e4c7bef954
Install build dependency for package.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
735
diff
changeset
|
54 |
$ sudo apt-get build-dep $package |
f4e4c7bef954
Install build dependency for package.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
735
diff
changeset
|
55 |
|
f4e4c7bef954
Install build dependency for package.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
735
diff
changeset
|
56 |
If all you want is checking what packages are needed to build a given package: |
f4e4c7bef954
Install build dependency for package.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
735
diff
changeset
|
57 |
|
821
6dfed9a6cf5f
'Build-Depends' attribute
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
820
diff
changeset
|
58 |
$ apt-cache showsrc $package |
820
f4e4c7bef954
Install build dependency for package.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
735
diff
changeset
|
59 |
|
821
6dfed9a6cf5f
'Build-Depends' attribute
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
820
diff
changeset
|
60 |
or check 'Build-Depends' attribute in |
6dfed9a6cf5f
'Build-Depends' attribute
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
820
diff
changeset
|
61 |
|
6dfed9a6cf5f
'Build-Depends' attribute
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
820
diff
changeset
|
62 |
$ apt-cache show $package |
6dfed9a6cf5f
'Build-Depends' attribute
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
820
diff
changeset
|
63 |