Installs one or more packages via <mutating-binary> install --fix-broken <package...>.
Example output (parsed):
Setting up curl:amd64 (8.5.0-2ubuntu10.6) ...
Setting up ca-certificates (20240203) ...
Package names.
OptionaltimeoutMs: number
Command timeout in milliseconds, default is -1 for no timeout.
List of installed packages.
Removes one or more packages via <mutating-binary> remove --fix-broken <package...>.
Example output (parsed):
Removing curl (8.5.0-2ubuntu10.6) ...
Removing libcurl4:amd64 (8.5.0-2ubuntu10.6) ...
Package names.
OptionalautoremoveEnabled: boolean
Whether to also remove orphaned dependencies. Defaults to true.
OptionaltimeoutMs: number
Command timeout in milliseconds, default is -1 for no timeout.
List of removed packages.
Searches package repositories via apt search <keywords...>.
Example output (parsed):
curl/jammy-updates,jammy-security 8.5.0-2ubuntu10.6 amd64
command line tool for transferring data with URL syntax
Search terms.
OptionalnamesOnly: boolean
Whether to return only package names.
Lists files installed by a package via dpkg-query -L <package>.
Example output:
/.
/usr
/usr/bin/curl
/usr/share/doc/curl/changelog.Debian.gz
Package name.
List of installed file paths for the package.
Gets the system's native package architecture via dpkg --print-architecture.
Packages installed for this architecture may omit it from their name,
while foreign-arch packages (e.g. libc6:i386 on amd64) need it.
Example output:
amd64
Debian architecture name (e.g. amd64, arm64).
Lists installed packages via dpkg-query -W -f '${Package}:${Architecture}=${Version}\\n'.
Each line uses the same name:arch=version form as PackageName.serialize.
Example output (parsed):
curl:amd64=8.5.0-2ubuntu10.6
libc6:amd64=2.39-0ubuntu8.4
List of installed packages.
Lists upgradable packages via apt list --upgradable.
Example output (parsed):
curl/jammy-updates,jammy-security 8.5.0-2ubuntu10.6 amd64 [upgradable from: 8.5.0-2ubuntu10.5]
List of upgradable packages.
Upgrades selected packages or all packages when no names are provided.
Commands executed:
<mutating-binary> install <package...><mutating-binary> upgradeExample output (parsed):
Setting up openssl (3.0.13-0ubuntu3.5) ...
Setting up libc6:amd64 (2.39-0ubuntu8.4) ...
Optionalpkgs: readonly PackageName[]
Optional package names.
OptionaltimeoutMs: number
Command timeout in milliseconds, default is -1 for no timeout.
Upgrades all packages via <mutating-binary> upgrade.
Example output (parsed):
Setting up openssl (3.0.13-0ubuntu3.5) ...
Setting up libc6:amd64 (2.39-0ubuntu8.4) ...
OptionaltimeoutMs: number
Command timeout in milliseconds, default is -1 for no timeout.
List of upgraded packages.
Updates package index metadata via <mutating-binary> update.
Example output (parsed):
12 packages can be upgraded. Run 'apt list --upgradable' to see them.
OptionaltimeoutMs: number
Command timeout in milliseconds, default is -1 for no timeout.
Number of packages that can be upgraded.
Retrieves package metadata via apt-cache --quiet=0 --no-all-versions show <package...>.
Example output (parsed):
Package: curl
Version: 8.5.0-2ubuntu10.6
Architecture: amd64
Description: command line tool for transferring data with URL syntax
Package names.
Cleans local apt cache data via <mutating-binary> autoclean.
Example output:
Reading package lists... Done
Building dependency tree... Done
Del old downloaded archive files
OptionaltimeoutMs: number
Command timeout in milliseconds, default is -1 for no timeout.
Removes orphaned dependencies via <mutating-binary> autoremove.
Example output (parsed):
Removing libfoo1:amd64 (1.2.3-1ubuntu1) ...
Removing bar-data (0.9.0-2) ...
OptionaltimeoutMs: number
Command timeout in milliseconds, default is -1 for no timeout.
List of removed packages.
Package manager contract implemented by APT and APT-fast managers.