1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
|
.\" groff -man -Tascii foo.1
.TH org.debian.apt 7 "December 2009" "aptdaemon" "D-Bus Interface"
.SH NAME
org.debian.apt \- the main interface of aptdaemon
.SH SYNOPSIS
The daemon is accessed through the D-Bus object at
.IR /org/debian/apt .
Which provides the following interface.
.SH DESCRIPTION
.SS METHODS
.TP
.B AddRepository
.BI "AddRepository\t(in 's' " type ","
.br
.BI "\t\tin 's' " uri ","
.br
.BI "\t\tin 's' " dist ","
.br
.BI "\t\tin 'as' " comps ","
.br
.BI "\t\tin 's' " comment ","
.br
.BI "\t\tin 's' " sourcesfile ")"
.RS
.PP
Add a new repository to the sources list file. The repository has to define the type (e.g. deb or deb-src), uri (e.g. http://archive.debian.org/debian), the distribution (e.g. stable) and a list of components (e.g. main).
.PP
Optionally a comment and an alternative sources.list file can be specified.
.RE
.TP
.B EnableDistroComponent
.BI "EnableDistroComponent\t(in 's' " comp ")"
.RS
.PP
Enable a component for all distro repositories, e.g. main or universe.
.RE
.TP
.B GetTrustedVendorKeys
.BI "GetTrustedVendorKeys\t(out 'as' " keys )
.RS
.PP
Return the GnuPG keys which are used to authenticate packages.
.RE
.TP
.B GetAtiveTransactions
.BI "GetActiveTransactions\t(out 'as' " tids )
.RS
.PP
Return an array of the currently queued transactions.
.RE
.TP
.B Quit
.br
.BI "Quit\t()"
.RS
.PP
Request the shutdown of the daemon. The daemon will finish a currently running transaction before.
.RE
.SS TRANSACTION BASED METHODS
The following methods are handled by transactions. By calling the methods a new transaction will be created for the task. The return value of the method is the D-Bus object path of the corresponding transaction. The transaction can be modified, to use an http proxy or to run in a specific language by setting the corresponding properties on the
.BR org.debian.apt.transaction (7)
interface. Afterwards the transaction has to be queued for processing by calling its Run method on the
.BR org.debian.apt.transaction (7)
interface.
.TP
.B UpdateCache
.BI "UpdateCache\t(out 's' " tid )
.RS
.PP
Return the id of a newly created transaction which will fetch the latest meta data from the repositories and rebuild the cache of available and installed packages.
.RE
.TP
.B UpdateCachePartially
.BI "UpdateCachePartially\t(in 's' " sources_list ,
.br
.BI "\t\tout 's' " tid )
.RS
.PP
Return the id of a newly created transaction which will fetch the latest meta data from the repositories specified in the given sources.list snippet only and rebuild the cache of available and installed packages.
.RE
.TP
.B InstallPackages
.BI "InstallPackages\t(in 'as' " package_names ,
.br
.BI "\t\tout 's' " tid )
.RS
.PP
Return the id of a newly created transaction which will install the packages
of the given names.
.PP
Optionally the to be installed version can be specified by
appending a "=" and the version to the package name, e.g. "xterm=256-1".
.RE
.TP
.B InstallFile
.BI "InstallFile\t(in 's' " path ,
.br
.BI "\t\tout 's' " tid )
.RS
.PP
Return the id of a newly create transaction which will install a local *.deb
package file at the given
.IR path .
.RE
.TP
.B UpgradePackages
.BI "UpgradePackages\t(in 'as' " package_names ,
.br
.BI "\t\t\tout 's' " tid )
.RS
.PP
Return the id of a newly created transaction which will upgrade the packages of the given names to their latest version.
.PP
Optionally the to be installed version can be specified by
appending a "=" and the version to the package name, e.g. "xterm=256-1".
.RE
.TP
.B RemovePackages
.BI "RemovePackages\t(in 'as' " package_names ,
.br
.BI "\t\t\tout 's' " tid )
.RS
.PP
Return the id of a newly created transaction which will remove the packages of the given names.
.PP
Optionally the version of the to be removed packages can be specified by
appending a "=" and the version to the package name, e.g. "xterm=256-1".
.RE
.TP
.B UpgradeSystem
.BI "UpgradeSystem\t(in 'b' " safe_mode ,
.br
.BI "\t\tout 's' " tid )
.RS
.PP
Return the id of a newly created transaction which will upgrade the whole system.
.PP
If in safe mode only already installed packages will be updated. Updates which require to remove installed packages or to install additional packages will be skipped.
.RE
.TP
.B CommitPackages
.BI "CommitPackages\t(in 'as' " install ,
.br
.BI "\t\t\tin 'as' " reinstall,
.br
.BI "\t\t\tin 'as' " remove,
.br
.BI "\t\t\tin 'as' " purge,
.br
.BI "\t\t\tin 'as' " upgrade ,
.br
.BI "\t\t\tin 'as' " downgrade ,
.br
.BI "\t\t\tout 's' " tid )
.RS
.PP
Return the id of a newly created transaction which will perform a complex install/removal task at once.
.IR Install ", " reinstall ", " remove ", " purge " and " upgrade
are lists of package names.
.PP
Optionally the version of the to be removed packages or the version of the
package which should be installed can be specified by
appending a "=" and the version to the package name, e.g. "xterm=256-1".
.RE
.TP
.B AddVendorKeyFromFile
.BI "AddVendorKeyFromFile\t(in 's' " path ,
.br
.BI "\t\t\tout 's' " tid )
.RS
.PP
Return the id of a newly created transaction which will install the public GnuPG key at the given
.I path
to the list of trusted software vendors. The list will be used to authenticate packages.
.RE
.TP
.B AddVendorKeyFromKeyserver
.BI "AddVendorKeyFromKeyserver\t(in 's' " keyid ,
.br
.BI "\t\t\tin 's' " keyserver,
.br
.BI "\t\t\tout 's' " tid )
.RS
.PP
Return the id of a newly created transaction which will download and install the public GnuPG key of the
.I keyid
from the given
.I keyserver
to the list of trusted software vendors. The list will be used to authenticate packages.
.RE
.TP
.B RemoveVendorKey
.BI "RemoveVendorKey\t(in 's' " fingerprint ,
.br
.BI "\t\t\tout 's' " tid )
.RS
.PP
Return the id of a newly created transaction which will remove the public GnuPG key with the given
.I fingerprint
from the list of trusted software vendors. The list will be used to authenticate packages.
.RE
.TP
.B FixBrokenDepends
.BI "FixBrokenDepends\t(out 's' " tid )
.RS
.PP
Return the id of a newly created transaction which will try to resolve unsatisfied dependencies by installing required packages or removing conflicting ones.
.RE
.TP
.B FixIncompleteInstall
.BI "FixIncompleteInstall\t(out 's' " tid )
.RS
.PP
Return the id of a newly created transaction which will try to complete previously failed installations by calling "dpkg --configure -a".
.RE
.SS SIGNALS
.TP
.B ActiveTransactionsChanged
.BI "ActiveTransactionsChanged\t('s' " active ,
.br
.BI "\t\t\t\t'as' " queued )
.RS
.PP
The signal is used to report changes of the currently running or queued
transactions. If there's any active transaction active will be an empty
string.
.RE
.SH HOMEPAGE
https://launchpad.net/aptdaemon
.SH BUGS
You can report bugs at the Launchpad site of aptdaemon:
https://bugs.launchpad.net/aptdaemon/+filebug
.SH AUTHOR
Sebastian Heinlein <devel at glatzor dot de>
.SH SEE ALSO
.BR org.debian.apt.transaction (7),
.BR aptd (2),
.BR aptdcon (2)
|