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. ✨

  • Role read 's' β€” the role enum of the transaction, e.g. update-cache.
  • Status read 's' β€” the current status enum of the transaction, e.g. downloading.
  • StatusDetails read 's' β€” a clear text message describing the current status. Receipts, but in words. πŸ’Œ
  • Progress read 'i' β€” the progress of the transaction in percent.
  • ProgressDownload read '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.
  • Space read 'i' β€” the additional disk space in Bytes which will be required by the transaction. The Simulate method has to be called to calculate the download size.
  • Download read 'i' β€” the required download size in Bytes of the transaction. The Simulate method has to be called to calculate the download size.
  • Packages read '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. πŸ“‹
  • Dependenciens read '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. The Simulate method has to be called to calculate the dependencies.
  • Cancellable read 'b' β€” if the transaction can be cancelled.
  • TerminalAttached read 'b' β€” if the master pty β€” which has to be set using the Terminal property β€” is attached as controlling terminal to the underlying dpkg call.
  • RequiredMedium read '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.
  • ConfigFileConflict read '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.
  • ExitState read 's' β€” the exit state enum of the transaction.
  • Error read 'a(ss)' β€” if an error occured, this property provides the error enum and the error message. 😭
  • Locale read-write 's' β€” this is the locale which will be used for translating status and error messages of apt, e.g. de_DE@utf-8.
  • Terminal read-write 's' β€” the path to the master pty which will be the controlling terminal of the underlying dpkg call. This allows to have an interactive terminal session. Main character energy, honestly. πŸ’…
  • DebconfSocket read-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.
  • Paused read 'b' β€” if the transaction is paused, e.g. waiting for a conflict file resolution or media change.
  • Unauthenticated read 'as' β€” list of unauthenticated packages which are going to be installed.
  • RemoveObsoletedDepends read-write 'b' β€” if obsoleted dependencies of to be removed packages which have been installed automatically should be removed too.
  • AllowUnauthenticated read-write 'b' β€” if it is allowed to install not authenticated software packages.
  • HttpProxy read-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.
  • MetaData read-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_icon for 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 ⭐


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