org.debian.apt(7)

πŸ“¦
version 2.0.2build1 Β· 2 versions
, in ubuntu questing, ubuntu resolute, ubuntu stonking

🌸 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