org.debian.apt.transaction(7)
πΈ NAME πΈ
org.debian.apt.transaction β okay bestie, this is the main interface of an aptdaemon transaction. That's it, that's the whole vibe. π
(And yes, this whole page is from the D-Bus Interface manual, section 7, iykyk.)
π¦ SYNOPSIS π¦
Every single transaction gets its own unique D-Bus object, like literally its own little main-character moment, for example at the D-Bus path:
/or/debian/apt/transaction/12123-123-123213
And that object? It provides the following interface. Slay. β¨
π DESCRIPTION π
π₯ METHODS π₯
ProvideMediumβProvideMedium (in 's' medium)
Continue a paused transaction which is waiting for the given medium. π
If a media change is required β say, to e.g. install packages from a CD/DVD β the transaction gets paused, and the RequiredMedium property gets changed to an array of the medium label plus its mount point. And on top of that, the MediumRequired signal will be emitted. Not me being all up in your notifications fr fr.
ResolveConfigFileConflictβResolveConfigFilePrompt (in 's' config, in 's' answer)
(Yes, the name up top and the name in the signature are not the same string. I don't make the rules, I just report them. π)
Continue a paused transaction which is waiting for an answer to handle a configuration file conflict. config is the path to the current configuration file, and answer can be either "replace" or "keep". Choose wisely, bestie. π«Ά
If a later config file is shipped in a package which overrides some user modifications, the transaction will be paused and the ConfigFileConflict property of the transaction will be set to an array of the old and the new configuration file path. The later one is supposed to replace the former one. Furthermore, the ConfigFileConflict signal will be emitted.
SimulateβSimulate ()
Simulate the transaction and calculate dependencies, required disk space and download size. And if a transaction would fail? The corresponding error will be raised. Lowkey the responsible thing to do before committing. β
RunβRun ()
Queue the transaction for processing. After this, there cannot be made any further changes to the transaction β e.g. modifing the http proxy. So like, once you hit send, you hit send. π
CancelβCancel ()
Cancel the transaction if possible.
π¦ SIGNALS π¦
FinishedβFinished ('s' exit_state)
This signal will be emitted when the transaction has been processed. The exit_state tells you if the transaction was completed, cancelled or failed. π
MediumRequiredβMediumRequired ('s' label, 's' mount_point)
This signal will be emitted if the transaction has been paused and waits for a media change to install packages.
ConfigFileConflictβConfigFileConflict ('s' old, 's' new)
This signal will be emitted if the transaction has been paused because a new configuration file is shipped in a package which would override changes by the user in the old configuration file.
PropertyChangedβPropertyChanged ('s' property_name , 'v' value)
This signal will be emitted if one of the following properties has changed. π
π PROPERTIES π
The properties of the transaction are available through the Get And GetAll methods of the D-Bus properties interface, and can be changed using the Set method. Yes queen, get and set, the whole cycle. β¨
Roleread's'β the role enum of the transaction, e.g.update-cache.Statusread's'β the current status enum of the transaction, e.g.downloading.StatusDetailsread's'β a clear text message describing the current status. Receipts, but in words. πProgressread'i'β the progress of the transaction in percent.ProgressDownloadread'sssiis'β the last download progress information recieved from APT. It's an array of the URI, status enum, short description, full size, already downloaded size, and an error or status message.Spaceread'i'β the additional disk space in Bytes which will be required by the transaction. TheSimulatemethod has to be called to calculate the download size.Downloadread'i'β the required download size in Bytes of the transaction. TheSimulatemethod has to be called to calculate the download size.Packagesread'a(a(s)a(s)a(s)a(s)a(s)a(s)a(s))'β the lists of packages which are initially queued to be installed, reinstalled, removed, purged, upgraded, downgraded or skipped from upgrading. The whole roster, basically. πDependenciensread'a(a(s)a(s)a(s)a(s)a(s)a(s)a(s))'β (spelled exactly like that, don't @ me π) the lists of packages which are additionally required to be installed, reinstalled, removed, purged, upgraded, downgraded or skipped from upgrading. TheSimulatemethod has to be called to calculate the dependencies.Cancellableread'b'β if the transaction can be cancelled.TerminalAttachedread'b'β if the master pty β which has to be set using theTerminalproperty β is attached as controlling terminal to the underlyingdpkgcall.RequiredMediumread'a(ss)'β the transaction will be stopped if a media change is required to install packages. This property provides the label and the mount point of the requested medium.ConfigFileConflictread'a(ss)'β the transaction will be stopped if a configuration file shipped in the package overrides changes of the user. This property provides the path to current and the path to the new configuration file.ExitStateread's'β the exit state enum of the transaction.Errorread'a(ss)'β if an error occured, this property provides the error enum and the error message. πLocaleread-write's'β this is the locale which will be used for translating status and error messages of apt, e.g.de_DE@utf-8.Terminalread-write's'β the path to the master pty which will be the controlling terminal of the underlyingdpkgcall. This allows to have an interactive terminal session. Main character energy, honestly. πDebconfSocketread-write's'β the path to the socket which will be used by the debconf passthrough backend to forward the debconf communication to the user session.Pausedread'b'β if the transaction is paused, e.g. waiting for a conflict file resolution or media change.Unauthenticatedread'as'β list of unauthenticated packages which are going to be installed.RemoveObsoletedDependsread-write'b'β if obsoleted dependencies of to be removed packages which have been installed automatically should be removed too.AllowUnauthenticatedread-write'b'β if it is allowed to install not authenticated software packages.HttpProxyread-write's'β the URL of an http proxy which should be used to download repository meta data and package files, e.g.http://myproxy.athome:8080. You should set the system wide proxy if you use this feature regularly.MetaDataread-write'a{ss}'β a dictonary which allows client application to store additional data in the transaction. The key name has to include an identifier of the client application separated by an unterscore from the key name, e.g.sc_iconfor the application icon name stored by software-center. The property cannot be changed anymore after the transaction has been queued. π«
π HOMEPAGE π
https://launchpad.net/aptdaemon
π BUGS π
You can report bugs at the Launchpad site of aptdaemon:
https://bugs.launchpad.net/aptdaemon/+filebug
Go off, tell them everything. π«Ά
π¦ AUTHOR π¦
Sebastian Heinlein <devel at glatzor dot de>
β SEE ALSO β
org.debian.apt.transaction(7)aptd(2)aptdcon(2)
Okay that's the whole page, bestie β no skips, no cuts. Now go forth and transact. π
aptdaemon Β· December 2009 β mwah, that's the version and the date, and this org.debian.apt.transaction(7) page is officially wrapped. πβ¨π¦
π¦ where this page comes from
- ubuntu jammy: aptdaemon 1.1.1+bzr982-0ubuntu39
- ubuntu noble: aptdaemon 1.1.1+bzr982-0ubuntu44
- ubuntu questing: aptdaemon 2.0.2
- ubuntu resolute: aptdaemon 2.0.2build1
- ubuntu stonking: aptdaemon 2.0.2build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms