4 Apt. |
4 Apt. |
5 ====== |
5 ====== |
6 .. contents:: |
6 .. contents:: |
7 :local: |
7 :local: |
8 |
8 |
9 Conf files. |
9 Debian releases |
10 =========== |
10 =============== |
|
11 |
|
12 Workflow:: |
|
13 |
|
14 experimental → unstable (sid) → testing → stable |
|
15 |
|
16 Which package from witch release:: |
|
17 |
|
18 $ aptitude search ~S~i~Astable |
|
19 $ aptitude search ~S~i~Atesting |
|
20 $ aptitude search ~S~i~Aunstable |
|
21 $ aptitude search ~S~i~Aexperimental |
|
22 |
|
23 * https://wiki.debian.org/DebianReleases |
|
24 * https://wiki.debian.org/DebianOldStable |
|
25 * https://wiki.debian.org/DebianStable |
|
26 * https://wiki.debian.org/DebianTesting |
|
27 * https://wiki.debian.org/DebianUnstable |
|
28 * https://wiki.debian.org/DebianExperimental |
|
29 |
|
30 Conf files |
|
31 ========== |
11 |
32 |
12 See man sources.list(5), apt.conf(5), apt_preferences(5). |
33 See man sources.list(5), apt.conf(5), apt_preferences(5). |
13 |
34 |
14 ``/etc/apt/sources.list``:: |
35 ``http://httpredir.debian.org/debian/`` used for automatic balancing to nearest |
15 |
36 perository. Corresponding ``/etc/apt/sources.list`` may have:: |
16 deb http://ftp.debian.org.ua/debian/ stable main contrib non-free |
37 |
17 deb http://ftp2.debian.org.ua/debian/ testing main contrib non-free |
38 deb http://httpredir.debian.org/debian/ stable main contrib non-free |
18 deb http://ftp2.debian.org.ua/debian/ unstable main contrib non-free |
39 deb http://httpredir.debian.org/debian/ stable-backports main contrib non-free |
19 deb http://ftp.uk.debian.org/debian/ experimental main contrib non-free |
40 deb http://httpredir.debian.org/debian/ unstable main contrib non-free |
20 deb http://www.deb-multimedia.org testing main non-free |
41 deb http://httpredir.debian.org/debian/ experimental main contrib non-free |
21 |
42 deb http://httpredir.debian.org/debian/ testing main contrib non-free |
22 Package priority. |
43 deb http://httpredir.debian.org/debian/ testing main contrib non-free |
23 ================= |
44 |
|
45 Security updates destributed via different URL (for ``oldstable``, ``stable`` |
|
46 and ``testing`` only, of cause there are no reason for ``sid`` or |
|
47 ``experimental``):: |
|
48 |
|
49 deb http://security.debian.org/ oldstable main contrib non-free |
|
50 deb http://security.debian.org/ stable main contrib non-free |
|
51 deb http://security.debian.org/ testing main contrib non-free |
|
52 |
|
53 Other useful repositories:: |
|
54 |
|
55 deb http://www.deb-multimedia.org testing main non-free |
|
56 |
|
57 http://httpredir.debian.org/ |
|
58 The redirector aims to solve the problem of choosing a Debian mirror. |
|
59 https://www.debian.org/security/ |
|
60 Keeping your Debian system secure. |
|
61 |
|
62 Find nearest mirror |
|
63 =================== |
|
64 |
|
65 Newer approach for selecting mirror is via DNS balancing from |
|
66 ``httpredir.debian.org``. Just use:: |
|
67 |
|
68 deb http://httpredir.debian.org/debian/ stable main contrib non-free |
|
69 |
|
70 Older approach to select nearest mirrors is:: |
|
71 |
|
72 $ sudo apt-get install netselect-apt |
|
73 $ netselect-apt stable |
|
74 $ netselect-apt testing |
|
75 $ netselect-apt unstable |
|
76 $ netselect-apt experimental |
|
77 $ netselect-apt sid |
|
78 |
|
79 Package priority |
|
80 ================ |
24 |
81 |
25 ``/etc/apt/preferences``:: |
82 ``/etc/apt/preferences``:: |
26 |
83 |
27 Package: * |
84 Package: * |
28 Pin: release a=stable |
85 Pin: release a=stable |
85 bash# aptitude versions emacs24 |
142 bash# aptitude versions emacs24 |
86 Package emacs24: |
143 Package emacs24: |
87 p 24.4+1-5 kali-current 50 |
144 p 24.4+1-5 kali-current 50 |
88 i 24.5+1-3 testing 990 |
145 i 24.5+1-3 testing 990 |
89 |
146 |
90 Debian releases. |
|
91 ================ |
|
92 |
|
93 Workflow:: |
|
94 |
|
95 experimental → unstable (sid) → testing → stable |
|
96 |
|
97 Which package from witch release:: |
|
98 |
|
99 $ aptitude search ~S~i~Astable |
|
100 $ aptitude search ~S~i~Atesting |
|
101 $ aptitude search ~S~i~Aunstable |
|
102 $ aptitude search ~S~i~Aexperimental |
|
103 |
|
104 * https://wiki.debian.org/DebianReleases |
|
105 * https://wiki.debian.org/DebianOldStable |
|
106 * https://wiki.debian.org/DebianStable |
|
107 * https://wiki.debian.org/DebianTesting |
|
108 * https://wiki.debian.org/DebianUnstable |
|
109 * https://wiki.debian.org/DebianExperimental |
|
110 |
|
111 Setup backport. |
147 Setup backport. |
112 =============== |
148 =============== |
113 |
149 |
114 Main backports archive located at http://www.backports.org. |
150 Main backports archive located at http://www.backports.org. |
115 |
151 |
228 ==================== |
264 ==================== |
229 :: |
265 :: |
230 |
266 |
231 $ aptitude search '?tag(works-with::logfile)' |
267 $ aptitude search '?tag(works-with::logfile)' |
232 |
268 |
233 Find nearest mirror. |
|
234 ==================== |
|
235 :: |
|
236 |
|
237 $ sudo apt-get install netselect-apt |
|
238 $ netselect-apt stable |
|
239 $ netselect-apt testing |
|
240 $ netselect-apt unstable |
|
241 $ netselect-apt experimental |
|
242 $ netselect-apt sid |
|
243 |
|
244 Newer approach for selecting mirror is via DNS. Just use:: |
|
245 |
|
246 http://httpredir.debian.org/ |
|
247 |
|
248 Show dependency graph. |
269 Show dependency graph. |
249 ====================== |
270 ====================== |
250 :: |
271 :: |
251 |
272 |
252 $ apt-cache dotty $PKG | dot -Tsvg >$PKG.svg && see $PKG.svg |
273 $ apt-cache dotty $PKG | dot -Tsvg >$PKG.svg && see $PKG.svg |