author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Sun, 08 Jul 2012 12:29:56 +0300 | |
changeset 1325 | ea51f96a6a47 |
parent 1321 | baa1dd97c9e1 |
child 1334 | 9bf0d5a1f0cf |
permissions | -rw-r--r-- |
1321
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
1 |
.. -*- coding: utf-8; -*- |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
2 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
3 |
====== |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
4 |
Apt. |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
5 |
====== |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
6 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
7 |
Conf files. |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
8 |
=========== |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
9 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
10 |
See man sources.list(5), apt.conf(5):: |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
11 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
12 |
/etc/apt/sources.list |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
13 |
/etc/apt/apt.conf |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
14 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
15 |
Setup backport. |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
16 |
=============== |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
17 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
18 |
Main backports archive you can find on www.backports.org. |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
19 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
20 |
To get packeges gpg sign key:: |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
21 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
22 |
$ su |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
23 |
... |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
24 |
$ wget -O - http://backports.org/debian/archive.key | apt-key add - |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
25 |
$ ^D |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
26 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
27 |
Write where packeges places:: |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
28 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
29 |
$ cat /etc/apt/sources.list |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
30 |
deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official amd64 DVD Binary-2 20070407-12:15]/ etch contrib main |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
31 |
deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official amd64 DVD Binary-1 20070407-12:15]/ etch contrib main |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
32 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
33 |
deb http://www.backports.org/debian/ etch-backports main contrib non-free |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
34 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
35 |
Getting new keys for packages. |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
36 |
============================== |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
37 |
:: |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
38 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
39 |
$ sudo apt-get update |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
40 |
... |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
41 |
W: There is no public key available for the following key IDs: |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
42 |
9AA38DCD55BE302B |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
43 |
W: GPG error: http://http.us.debian.org etch Release: The following signatures |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
44 |
couldn't be verified because the public key is not available: NO_PUBKEY |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
45 |
9AA38DCD55BE302B |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
46 |
... |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
47 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
48 |
$ gpg --keyserver pgp.mit.edu --recv-key 9AA38DCD55BE302B \ |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
49 |
--keyserver-options http-proxy=http://user:pass@192.168.1.1:3128 |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
50 |
gpg: requesting key 55BE302B from hkp server pgp.mit.edu |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
51 |
gpg: key 55BE302B: public key "Debian Archive Automatic Signing Key (5.0/lenny) <ftpmaster@debian.org>" imported |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
52 |
gpg: no ultimately trusted keys found |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
53 |
gpg: Total number processed: 1 |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
54 |
gpg: imported: 1 (RSA: 1) |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
55 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
56 |
$ gpg --export 9AA38DCD55BE302B | sudo apt-key add - |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
57 |
OK |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
58 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
59 |
Install build dependency for package. |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
60 |
===================================== |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
61 |
:: |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
62 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
63 |
$ apt-get install build-essential # install dev LIBC and GCC C/C++ |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
64 |
$ sudo apt-get build-dep $package |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
65 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
66 |
If all you want is checking what packages are needed to build a given package:: |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
67 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
68 |
$ apt-cache showsrc $package |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
69 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
70 |
or check 'Build-Depends' attribute in:: |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
71 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
72 |
$ apt-cache show $package |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
73 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
74 |
Delete config file for removed packages. |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
75 |
======================================== |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
76 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
77 |
To get list of such packages use one of:: |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
78 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
79 |
$ aptitude search ~c |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
80 |
$ grep-status -n -sPackage -FStatus config-files |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
81 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
82 |
To remove them:: |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
83 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
84 |
$ aptitude purge ~c |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
85 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
86 |
Delete obsolete packages. |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
87 |
========================= |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
88 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
89 |
To get list of such packages use:: |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
90 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
91 |
$ aptitude search ~o |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
92 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
93 |
To remove them:: |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
94 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
95 |
$ aptitude purge ~o |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
96 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
97 |
Check package files for modification. |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
98 |
===================================== |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
99 |
:: |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
100 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
101 |
$ sudo debsums --changed |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
102 |