author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Wed, 22 Aug 2018 16:04:23 +0300 | |
changeset 2270 | da95425e3010 |
parent 1976 | 97a275f76931 |
child 2322 | 237657ef1fd9 |
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 |
====== |
1346
a2fbf50a43f4
Fix: Has no 'contents::' directive.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
6 |
.. contents:: |
1905
fba288d59662
Include only local subsections into TOC. This prevent duplication of
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1882
diff
changeset
|
7 |
:local: |
1321
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
8 |
|
1962
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
9 |
Debian releases |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
10 |
=============== |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
11 |
|
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
12 |
Workflow:: |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
13 |
|
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
14 |
experimental → unstable (sid) → testing → stable |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
15 |
|
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
16 |
Which package from witch release:: |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
17 |
|
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
18 |
$ aptitude search ~S~i~Astable |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
19 |
$ aptitude search ~S~i~Atesting |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
20 |
$ aptitude search ~S~i~Aunstable |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
21 |
$ aptitude search ~S~i~Aexperimental |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
22 |
|
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
23 |
* https://wiki.debian.org/DebianReleases |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
24 |
* https://wiki.debian.org/DebianOldStable |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
25 |
* https://wiki.debian.org/DebianStable |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
26 |
* https://wiki.debian.org/DebianTesting |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
27 |
* https://wiki.debian.org/DebianUnstable |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
28 |
* https://wiki.debian.org/DebianExperimental |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
29 |
|
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
30 |
Conf files |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
31 |
========== |
1321
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
32 |
|
1460
59cb3aaa2fab
apt_preferences(5).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1459
diff
changeset
|
33 |
See man sources.list(5), apt.conf(5), apt_preferences(5). |
1321
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
34 |
|
1962
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
35 |
``http://httpredir.debian.org/debian/`` used for automatic balancing to nearest |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
36 |
perository. Corresponding ``/etc/apt/sources.list`` may have:: |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
37 |
|
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
38 |
deb http://httpredir.debian.org/debian/ stable main contrib non-free |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
39 |
deb http://httpredir.debian.org/debian/ stable-backports main contrib non-free |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
40 |
deb http://httpredir.debian.org/debian/ unstable main contrib non-free |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
41 |
deb http://httpredir.debian.org/debian/ experimental main contrib non-free |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
42 |
deb http://httpredir.debian.org/debian/ testing main contrib non-free |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
43 |
deb http://httpredir.debian.org/debian/ testing main contrib non-free |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
44 |
|
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
45 |
Security updates destributed via different URL (for ``oldstable``, ``stable`` |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
46 |
and ``testing`` only, of cause there are no reason for ``sid`` or |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
47 |
``experimental``):: |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
48 |
|
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
49 |
deb http://security.debian.org/ oldstable main contrib non-free |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
50 |
deb http://security.debian.org/ stable main contrib non-free |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
51 |
deb http://security.debian.org/ testing main contrib non-free |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
52 |
|
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
53 |
Other useful repositories:: |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
54 |
|
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
55 |
deb http://www.deb-multimedia.org testing main non-free |
1459
3000c0f32807
/etc/apt/preferences
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1346
diff
changeset
|
56 |
|
1963
1bdab6ff47be
List of useful unofficial repositories.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1962
diff
changeset
|
57 |
https://wiki.debian.org/SourcesList |
1bdab6ff47be
List of useful unofficial repositories.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1962
diff
changeset
|
58 |
About ``/etc/apt/sources.list``. |
1962
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
59 |
http://httpredir.debian.org/ |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
60 |
The redirector aims to solve the problem of choosing a Debian mirror. |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
61 |
https://www.debian.org/security/ |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
62 |
Keeping your Debian system secure. |
1963
1bdab6ff47be
List of useful unofficial repositories.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1962
diff
changeset
|
63 |
https://wiki.debian.org/UnofficialRepositories |
1bdab6ff47be
List of useful unofficial repositories.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1962
diff
changeset
|
64 |
List of useful unofficial repositories. |
1bdab6ff47be
List of useful unofficial repositories.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1962
diff
changeset
|
65 |
https://www.google.com/linuxrepositories/ |
1bdab6ff47be
List of useful unofficial repositories.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1962
diff
changeset
|
66 |
Links to Google repositories and verification key. |
1962
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
67 |
|
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
68 |
Find nearest mirror |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
69 |
=================== |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
70 |
|
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
71 |
Newer approach for selecting mirror is via DNS balancing from |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
72 |
``httpredir.debian.org``. Just use:: |
1459
3000c0f32807
/etc/apt/preferences
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1346
diff
changeset
|
73 |
|
1962
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
74 |
deb http://httpredir.debian.org/debian/ stable main contrib non-free |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
75 |
|
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
76 |
Older approach to select nearest mirrors is:: |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
77 |
|
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
78 |
$ sudo apt-get install netselect-apt |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
79 |
$ netselect-apt stable |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
80 |
$ netselect-apt testing |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
81 |
$ netselect-apt unstable |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
82 |
$ netselect-apt experimental |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
83 |
$ netselect-apt sid |
1a1e7df7015e
Find nearest mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
84 |
|
1976 | 85 |
Check package versions and priority |
86 |
=================================== |
|
1860 | 87 |
|
1459
3000c0f32807
/etc/apt/preferences
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1346
diff
changeset
|
88 |
``/etc/apt/preferences``:: |
3000c0f32807
/etc/apt/preferences
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1346
diff
changeset
|
89 |
|
3000c0f32807
/etc/apt/preferences
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1346
diff
changeset
|
90 |
Package: * |
3000c0f32807
/etc/apt/preferences
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1346
diff
changeset
|
91 |
Pin: release a=stable |
3000c0f32807
/etc/apt/preferences
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1346
diff
changeset
|
92 |
Pin-Priority: 800 |
3000c0f32807
/etc/apt/preferences
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1346
diff
changeset
|
93 |
|
3000c0f32807
/etc/apt/preferences
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1346
diff
changeset
|
94 |
Package: * |
3000c0f32807
/etc/apt/preferences
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1346
diff
changeset
|
95 |
Pin: release a=testing |
3000c0f32807
/etc/apt/preferences
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1346
diff
changeset
|
96 |
Pin-Priority: 900 |
3000c0f32807
/etc/apt/preferences
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1346
diff
changeset
|
97 |
|
3000c0f32807
/etc/apt/preferences
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1346
diff
changeset
|
98 |
Package: * |
3000c0f32807
/etc/apt/preferences
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1346
diff
changeset
|
99 |
Pin: release a=unstable |
3000c0f32807
/etc/apt/preferences
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1346
diff
changeset
|
100 |
Pin-Priority: 700 |
3000c0f32807
/etc/apt/preferences
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1346
diff
changeset
|
101 |
|
3000c0f32807
/etc/apt/preferences
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1346
diff
changeset
|
102 |
Package: * |
3000c0f32807
/etc/apt/preferences
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1346
diff
changeset
|
103 |
Pin: release a=experimental |
3000c0f32807
/etc/apt/preferences
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1346
diff
changeset
|
104 |
Pin-Priority: 600 |
1321
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
105 |
|
1860 | 106 |
Example that prevent installing ``*systemd*`` packages (priority strictly below |
107 |
``0`` forbid package to be installed):: |
|
108 |
||
109 |
Package: systemd |
|
110 |
Pin: origin "" |
|
111 |
Pin-Priority: -1 |
|
112 |
||
113 |
Package: *systemd* |
|
114 |
Pin: origin "" |
|
115 |
Pin-Priority: -1 |
|
116 |
||
117 |
Example that avoid installing packages from different distribution (priority |
|
118 |
strictly below ``100`` cause a version to be installed only if there is no |
|
119 |
installed version of the package), you should keep main distribution priority |
|
120 |
above foreign distro priority:: |
|
121 |
||
122 |
Package: * |
|
123 |
Pin: release a=testing |
|
124 |
Pin-Priority: 990 |
|
125 |
||
126 |
Package: * |
|
127 |
Pin: release o=Kali |
|
128 |
Pin-Priority: 50 |
|
129 |
||
1861
c28dba308db9
Discover package priority.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1860
diff
changeset
|
130 |
To discover package priority:: |
c28dba308db9
Discover package priority.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1860
diff
changeset
|
131 |
|
c28dba308db9
Discover package priority.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1860
diff
changeset
|
132 |
bash# apt-cache madison emacs24 |
c28dba308db9
Discover package priority.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1860
diff
changeset
|
133 |
emacs24 | 24.5+1-3 | http://ftp.us.debian.org/debian/ testing/main amd64 Packages |
c28dba308db9
Discover package priority.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1860
diff
changeset
|
134 |
emacs24 | 24.4+1-5 | http://http.kali.org/kali/ kali-current/main amd64 Packages |
c28dba308db9
Discover package priority.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1860
diff
changeset
|
135 |
emacs24 | 24.5+1-3 | http://ftp.us.debian.org/debian/ testing/main Sources |
c28dba308db9
Discover package priority.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1860
diff
changeset
|
136 |
|
c28dba308db9
Discover package priority.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1860
diff
changeset
|
137 |
bash# apt-cache policy emacs24 |
c28dba308db9
Discover package priority.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1860
diff
changeset
|
138 |
emacs24: |
c28dba308db9
Discover package priority.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1860
diff
changeset
|
139 |
Installed: 24.5+1-3 |
c28dba308db9
Discover package priority.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1860
diff
changeset
|
140 |
Candidate: 24.5+1-3 |
c28dba308db9
Discover package priority.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1860
diff
changeset
|
141 |
Version table: |
c28dba308db9
Discover package priority.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1860
diff
changeset
|
142 |
*** 24.5+1-3 0 |
c28dba308db9
Discover package priority.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1860
diff
changeset
|
143 |
990 http://ftp.us.debian.org/debian/ testing/main amd64 Packages |
c28dba308db9
Discover package priority.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1860
diff
changeset
|
144 |
100 /var/lib/dpkg/status |
c28dba308db9
Discover package priority.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1860
diff
changeset
|
145 |
24.4+1-5 0 |
c28dba308db9
Discover package priority.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1860
diff
changeset
|
146 |
50 http://http.kali.org/kali/ kali-current/main amd64 Packages |
c28dba308db9
Discover package priority.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1860
diff
changeset
|
147 |
|
c28dba308db9
Discover package priority.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1860
diff
changeset
|
148 |
bash# aptitude versions emacs24 |
c28dba308db9
Discover package priority.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1860
diff
changeset
|
149 |
Package emacs24: |
c28dba308db9
Discover package priority.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1860
diff
changeset
|
150 |
p 24.4+1-5 kali-current 50 |
c28dba308db9
Discover package priority.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1860
diff
changeset
|
151 |
i 24.5+1-3 testing 990 |
c28dba308db9
Discover package priority.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1860
diff
changeset
|
152 |
|
1321
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
153 |
Setup backport. |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
154 |
=============== |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
155 |
|
1459
3000c0f32807
/etc/apt/preferences
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1346
diff
changeset
|
156 |
Main backports archive located at http://www.backports.org. |
1321
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
157 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
158 |
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
|
159 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
160 |
$ su |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
161 |
... |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
162 |
$ 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
|
163 |
$ ^D |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
164 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
165 |
Write where packeges places:: |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
166 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
167 |
$ cat /etc/apt/sources.list |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
168 |
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
|
169 |
|
1859
048f61a3be91
Importing package signing key.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1739
diff
changeset
|
170 |
Importing package signing key. |
1321
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
171 |
============================== |
1859
048f61a3be91
Importing package signing key.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1739
diff
changeset
|
172 |
|
048f61a3be91
Importing package signing key.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1739
diff
changeset
|
173 |
Usualy you can safely update keyring via ``debian-keyring`` package because it |
048f61a3be91
Importing package signing key.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1739
diff
changeset
|
174 |
is signed by prevoius keyring:: |
048f61a3be91
Importing package signing key.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1739
diff
changeset
|
175 |
|
048f61a3be91
Importing package signing key.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1739
diff
changeset
|
176 |
$ sudo apt-get install debian-keyring |
048f61a3be91
Importing package signing key.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1739
diff
changeset
|
177 |
|
048f61a3be91
Importing package signing key.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1739
diff
changeset
|
178 |
Defferent 3rd party provide keys for download. If you trust key (or get it in a |
048f61a3be91
Importing package signing key.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1739
diff
changeset
|
179 |
trusted way) it is easy to import it:: |
048f61a3be91
Importing package signing key.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1739
diff
changeset
|
180 |
|
048f61a3be91
Importing package signing key.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1739
diff
changeset
|
181 |
$ sudo apt-key add $FILE.pgp |
048f61a3be91
Importing package signing key.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1739
diff
changeset
|
182 |
|
048f61a3be91
Importing package signing key.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1739
diff
changeset
|
183 |
Another way to resolve warning:: |
1321
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
184 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
185 |
$ sudo apt-get update |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
186 |
... |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
187 |
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
|
188 |
9AA38DCD55BE302B |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
189 |
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
|
190 |
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
|
191 |
9AA38DCD55BE302B |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
192 |
... |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
193 |
|
1859
048f61a3be91
Importing package signing key.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1739
diff
changeset
|
194 |
is to use key servers directly:: |
048f61a3be91
Importing package signing key.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1739
diff
changeset
|
195 |
|
1321
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
196 |
$ 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
|
197 |
--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
|
198 |
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
|
199 |
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
|
200 |
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
|
201 |
gpg: Total number processed: 1 |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
202 |
gpg: imported: 1 (RSA: 1) |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
203 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
204 |
$ 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
|
205 |
OK |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
206 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
207 |
Install build dependency for package. |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
208 |
===================================== |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
209 |
:: |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
210 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
211 |
$ 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
|
212 |
$ 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
|
213 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
214 |
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
|
215 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
216 |
$ apt-cache showsrc $package |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
217 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
218 |
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
|
219 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
220 |
$ apt-cache show $package |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
221 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
222 |
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
|
223 |
======================================== |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
224 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
225 |
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
|
226 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
227 |
$ aptitude search ~c |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
228 |
$ 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
|
229 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
230 |
To remove them:: |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
231 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
232 |
$ aptitude purge ~c |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
233 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
234 |
Delete obsolete packages. |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
235 |
========================= |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
236 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
237 |
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
|
238 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
239 |
$ aptitude search ~o |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
240 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
241 |
To remove them:: |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
242 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
243 |
$ aptitude purge ~o |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
244 |
|
1616
1559575ac211
Clean up packages cache.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1604
diff
changeset
|
245 |
To remove packages that were automatically installed to satisfy dependencies and |
1559575ac211
Clean up packages cache.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1604
diff
changeset
|
246 |
are now no longer needed:: |
1559575ac211
Clean up packages cache.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1604
diff
changeset
|
247 |
|
1559575ac211
Clean up packages cache.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1604
diff
changeset
|
248 |
$ sudo apt-get autoremove |
1559575ac211
Clean up packages cache.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1604
diff
changeset
|
249 |
|
1559575ac211
Clean up packages cache.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1604
diff
changeset
|
250 |
Clean up packages cache. |
1559575ac211
Clean up packages cache.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1604
diff
changeset
|
251 |
======================== |
1559575ac211
Clean up packages cache.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1604
diff
changeset
|
252 |
|
1559575ac211
Clean up packages cache.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1604
diff
changeset
|
253 |
Remove everything from ``/var/cache/apt/archives/`` and |
1559575ac211
Clean up packages cache.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1604
diff
changeset
|
254 |
``/var/cache/apt/archives/partial/``:: |
1559575ac211
Clean up packages cache.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1604
diff
changeset
|
255 |
|
1559575ac211
Clean up packages cache.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1604
diff
changeset
|
256 |
$ sudo apt-get clean |
1559575ac211
Clean up packages cache.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1604
diff
changeset
|
257 |
|
1559575ac211
Clean up packages cache.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1604
diff
changeset
|
258 |
Removes package files that can no longer be downloaded, and are largely |
1559575ac211
Clean up packages cache.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1604
diff
changeset
|
259 |
useless:: |
1559575ac211
Clean up packages cache.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1604
diff
changeset
|
260 |
|
1559575ac211
Clean up packages cache.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1604
diff
changeset
|
261 |
$ sudo apt-get autoclean |
1559575ac211
Clean up packages cache.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1604
diff
changeset
|
262 |
|
1321
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
263 |
Check package files for modification. |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
264 |
===================================== |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
265 |
:: |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
266 |
|
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
267 |
$ sudo debsums --changed |
baa1dd97c9e1
Delete config file for removed packages. Delete obsolete packages. Check
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
268 |
|
1604
797a3ba1f9b5
Search for packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1460
diff
changeset
|
269 |
Search for packages. |
797a3ba1f9b5
Search for packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1460
diff
changeset
|
270 |
==================== |
797a3ba1f9b5
Search for packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1460
diff
changeset
|
271 |
:: |
797a3ba1f9b5
Search for packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1460
diff
changeset
|
272 |
|
797a3ba1f9b5
Search for packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1460
diff
changeset
|
273 |
$ aptitude search '?tag(works-with::logfile)' |
797a3ba1f9b5
Search for packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1460
diff
changeset
|
274 |
|
1730
fc588b9ae857
Show dependency graph.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1716
diff
changeset
|
275 |
Show dependency graph. |
fc588b9ae857
Show dependency graph.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1716
diff
changeset
|
276 |
====================== |
fc588b9ae857
Show dependency graph.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1716
diff
changeset
|
277 |
:: |
fc588b9ae857
Show dependency graph.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1716
diff
changeset
|
278 |
|
fc588b9ae857
Show dependency graph.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1716
diff
changeset
|
279 |
$ apt-cache dotty $PKG | dot -Tsvg >$PKG.svg && see $PKG.svg |
fc588b9ae857
Show dependency graph.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1716
diff
changeset
|
280 |
|
fc588b9ae857
Show dependency graph.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1716
diff
changeset
|
281 |
$ sudo apt-get install debtree |
fc588b9ae857
Show dependency graph.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1716
diff
changeset
|
282 |
$ debtree $PKG | dot -Tsvg >$PKG.svg && see $PKG.svg |
fc588b9ae857
Show dependency graph.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1716
diff
changeset
|
283 |
|
fc588b9ae857
Show dependency graph.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1716
diff
changeset
|
284 |
$ sudo apt-get install apt-rdepends |
1732 | 285 |
$ apt-rdepends $PKG |
286 |
$ apt-rdepends -r $PKG |
|
1730
fc588b9ae857
Show dependency graph.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1716
diff
changeset
|
287 |
$ apt-rdepends -d $PKG | dot -Tsvg >$PKG.svg && see $PKG.svg |
1732 | 288 |
$ apt-rdepends -d -r $PKG | dot -Tsvg >$PKG.svg && see $PKG.svg |
1976 | 289 |
|
290 |
Simulation mode |
|
291 |
=============== |
|
292 |
||
293 |
Simulation for ``apt-get`` and ``aptitude`` shows what happen without actually |
|
294 |
modifying or installing any packages. |
|
295 |
||
296 |
Simulate install or upgrade with ``-s`` key:: |
|
297 |
||
298 |
$ sudo apt-get install -s xterm |
|
299 |
$ sudo aptitude install -s xterm |
|
300 |
$ sudo apt-get upgrade -s |
|
301 |
$ sudo aptitude upgrade -s |
|
302 |