author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Fri, 23 Nov 2012 09:32:07 +0200 | |
changeset 1435 | d8601c18d27e |
parent 1346 | a2fbf50a43f4 |
child 1459 | 3000c0f32807 |
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; -*- |
1334
9bf0d5a1f0cf
Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1321
diff
changeset
|
2 |
.. include:: HEADER.rst |
1321
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 |
====== |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
5 |
Apt. |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
6 |
====== |
1346
a2fbf50a43f4
Fix: Has no 'contents::' directive.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
7 |
.. contents:: |
1321
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 |
Conf files. |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
10 |
=========== |
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 |
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
|
13 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
14 |
/etc/apt/sources.list |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
15 |
/etc/apt/apt.conf |
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 |
Setup backport. |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
18 |
=============== |
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 |
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
|
21 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
22 |
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
|
23 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
24 |
$ su |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
25 |
... |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
26 |
$ 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
|
27 |
$ ^D |
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 |
Write where packeges places:: |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
30 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
31 |
$ cat /etc/apt/sources.list |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
32 |
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
|
33 |
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
|
34 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
35 |
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
|
36 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
37 |
Getting new keys for packages. |
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 |
:: |
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 |
$ sudo apt-get update |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
42 |
... |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
43 |
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
|
44 |
9AA38DCD55BE302B |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
45 |
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
|
46 |
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
|
47 |
9AA38DCD55BE302B |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
48 |
... |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
49 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
50 |
$ 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
|
51 |
--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
|
52 |
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
|
53 |
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
|
54 |
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
|
55 |
gpg: Total number processed: 1 |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
56 |
gpg: imported: 1 (RSA: 1) |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
57 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
58 |
$ 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
|
59 |
OK |
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 |
Install build dependency for package. |
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 |
:: |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
64 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
65 |
$ 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
|
66 |
$ 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
|
67 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
68 |
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
|
69 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
70 |
$ apt-cache showsrc $package |
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 |
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
|
73 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
74 |
$ apt-cache show $package |
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 |
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
|
77 |
======================================== |
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 |
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
|
80 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
81 |
$ aptitude search ~c |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
82 |
$ 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
|
83 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
84 |
To remove them:: |
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 |
$ aptitude purge ~c |
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 |
Delete obsolete packages. |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
89 |
========================= |
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 |
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
|
92 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
93 |
$ aptitude search ~o |
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 |
To remove them:: |
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 |
$ aptitude purge ~o |
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 |
Check package files for modification. |
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 |
:: |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
102 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
103 |
$ sudo debsums --changed |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
104 |