org.debian.apt(7)
πΈ NAME πΈ
okay so bestie, org.debian.apt β it's the main interface of aptdaemon. main character energy fr fr π
β¨ SYNOPSIS β¨
so basically you talk to the daemon through the D-Bus object at /org/debian/apt, and that object is serving up the interface below. no cap. π¦
π DESCRIPTION π
π METHODS π
AddRepository
AddRepository (in 's' type,
in 's' uri,
in 's' dist,
in 'as' comps,
in 's' comment,
in 's' sourcesfile)
Adds a whole new repository to the sources list file, slay π. Your repo has to define the type (think deb or deb-src), the uri (like http://archive.debian.org/debian), the distribution (like stable) and a list of components (like main). Those are the non-negotiables.
Optionally you can also toss in a comment and an alternative sources.list file. cute little extras, no pressure πΈ
EnableDistroComponent
EnableDistroComponent (in 's' comp)
Turns on a component for all the distro repositories. like main or universe. one call, every repo, iconic. β¨
GetAtiveTransactions
GetActiveTransactions (out 'as' tids)
(and yes the heading says GetAtiveTransactions while the signature says GetActiveTransactions β we are not touching either one, they're both valid and I love them π)
Returns an array of the transactions that are currently queued. that's it, that's the whole vibe.
Quit
Quit ()
Asks the daemon to shut down. but bestie, it's polite β it will finish a currently running transaction before it goes. not me respecting the queue π
π₯ TRANSACTION BASED METHODS π₯
so these next ones are handled by transactions. the way this works: when you call one of these methods, a brand-new transaction gets created for that task, and the return value you get back is the D-Bus object path of the corresponding transaction. π«
Then, if you want, you can modify that transaction β set it to use an http proxy, or make it run in a specific language β by setting the corresponding properties on the org.debian.apt.transaction(7) interface. After all that, you have to queue the transaction for processing by calling its Run method on the org.debian.apt.transaction(7) interface. don't skip that step, it's giving required π«Ά
UpdateCache
UpdateCache (out 's' tid)
Returns the id of a newly created transaction that will fetch the latest meta data from the repositories and rebuild the cache of available and installed packages. glow up for your package lists β¨
UpdateCachePartially
UpdateCachePartially (in 's' sources_list,
out 's' tid)
Returns the id of a newly created transaction that fetches the latest meta data only from the repositories specified in the given sources.list snippet, and rebuilds the cache of available and installed packages. selective queen π
InstallPackages
InstallPackages (in 'as' package_names,
out 's' tid)
Returns the id of a newly created transaction that will install the packages of the given names. let's go π¦
Optionally, you can specify the version you want installed by appending a "=" and the version to the package name, like "xterm=256-1". precision, we love to see it.
InstallFile
InstallFile (in 's' path,
out 's' tid)
Returns the id of a newly create transaction (the manpage said create, and we're keeping it, typo queen π) that will install a local *.deb package file sitting at the given path. local files deserve love too π
UpgradePackages
UpgradePackages (in 'as' package_names,
out 's' tid)
Returns the id of a newly created transaction that will upgrade the packages of the given names to their latest version. fresh out the oven π₯
Optionally, you can specify the version to be installed by appending a "=" and the version to the package name, like "xterm=256-1".
RemovePackages
RemovePackages (in 'as' package_names,
out 's' tid)
Returns the id of a newly created transaction that will remove the packages of the given names. bye bestie π
Optionally, you can specify the version of the packages being removed by appending a "=" and the version to the package name, like "xterm=256-1".
UpgradeSystem
UpgradeSystem (in 'b' safe_mode,
out 's' tid)
Returns the id of a newly created transaction that will upgrade the whole system. the entire thing. main character move π
If you're in safe mode, only already-installed packages get updated. Any updates that would require removing installed packages or installing additional packages? skipped. safe mode said "not today" π
CommitPackages
CommitPackages (in 'as' install,
in 'as' reinstall,
in 'as' remove,
in 'as' purge,
in 'as' upgrade,
in 'as' downgrade,
out 's' tid)
Returns the id of a newly created transaction that will perform a whole complex install/removal task all at once. one transaction, so many jobs, multitasking icon π
Install, reinstall, remove, purge and upgrade are all lists of package names.
Optionally, you can specify the version of the packages to be removed, or the version of the package that should be installed, by appending a "=" and the version to the package name, like "xterm=256-1".
FixBrokenDepends
FixBrokenDepends (out 's' tid)
Returns the id of a newly created transaction that will try to resolve unsatisfied dependencies by installing the required packages or removing the conflicting ones. therapy for your dependency graph π§
FixIncompleteInstall
FixIncompleteInstall (out 's' tid)
Returns the id of a newly created transaction that will try to complete previously failed installations by calling "dpkg --configure -a". we don't leave failed installs hanging, periodt. π
π SIGNALS π
ActiveTransactionsChanged
ActiveTransactionsChanged ('s' active,
'as' queued)
This signal is used to report changes in the currently running or queued transactions. heads up though: if there's any active transaction, active will be an empty string. that's just how it is π¦
π HOMEPAGE π
https://launchpad.net/aptdaemon
π BUGS π
You can report bugs at the Launchpad site of aptdaemon:
https://bugs.launchpad.net/aptdaemon/+filebug
go tell them everything, they can handle it π«Ά
π AUTHOR π
Sebastian Heinlein <devel at glatzor dot de>
π SEE ALSO π
org.debian.apt.transaction(7), aptd(2), aptdcon(2)
and that's the whole page bestie, no notes β¨ this was aptdaemon, December 2009, and you just read org.debian.apt(7) β stay iconic, go queue a transaction πππ¦
π¦ where this page comes from
- 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