← 返回命令列表

Linux command

aptdcon 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Install

aptdcon --install "[package1 package2]"

Remove

aptdcon --remove "[package]"

Purge

aptdcon --purge "[package]"

Upgrade named packages

aptdcon --upgrade "[package]"

Upgrade the whole system

aptdcon --upgrade-system

Refresh the package cache

aptdcon --refresh

Fix broken dependencies

aptdcon --fix-depends

Install packages while showing dpkg's terminal output

aptdcon --install "[package]" --show-terminal

说明

aptdcon is a command-line client for aptdaemon, a system-wide D-Bus service that serializes APT operations and performs PolicyKit-based authentication. It exposes the same backend used by GNOME Software, Software-Properties-GTK, and update-manager, so actions dispatched via `aptdcon` cooperate cleanly with running GUI package managers. Operations are queued on the daemon; multiple `aptdcon` invocations simply hand off to `aptd`, which runs them in sequence. PolicyKit prompts for authentication as needed (via a graphical or tty agent).

参数

-i _PKGS_, --install _PKGS_
Install the listed packages.
--reinstall _PKGS_
Reinstall the listed packages.
-r _PKGS_, --remove _PKGS_
Remove the listed packages (keep config files).
-p _PKGS_, --purge _PKGS_
Remove and purge the listed packages (delete config files too).
-u _PKGS_, --upgrade _PKGS_
Upgrade the listed packages.
--upgrade-system
Upgrade all packages on the system (equivalent to `apt upgrade`).
--refresh
Update the package lists.
--fix-install
Complete a previously cancelled installation via dpkg.
--fix-depends
Attempt to resolve unsatisfied dependencies.
--add-vendor-key _PUBLIC_KEY_FILE_
Install a vendor signing key from a file.
--add-vendor-key-from-keyserver _KEY_ID_
Fetch and install a vendor key from a keyserver.
--key-server _KEYSERVER_
Use _KEYSERVER_ for key downloads.
--remove-vendor-key _FINGERPRINT_
Remove the vendor key with the given fingerprint.
--list-trusted-vendors
List trusted software vendors and their keys.
--add-repository _'DEB_LINE'_
Add the given `deb` line to sources.
--sources-file _FILE_
Alternative sources.list location for repository management.
--show-terminal
Attach to dpkg's interactive terminal (prompts, progress).
--hide-terminal
Suppress dpkg terminal output.
--allow-unauthenticated
Allow install of packages that are not from a trusted vendor.
-d, --debug
Print extra diagnostic information.
-h, --help
Show help.
-v, --version
Show aptdcon version.

FAQ

What is the aptdcon command used for?

aptdcon is a command-line client for aptdaemon, a system-wide D-Bus service that serializes APT operations and performs PolicyKit-based authentication. It exposes the same backend used by GNOME Software, Software-Properties-GTK, and update-manager, so actions dispatched via `aptdcon` cooperate cleanly with running GUI package managers. Operations are queued on the daemon; multiple `aptdcon` invocations simply hand off to `aptd`, which runs them in sequence. PolicyKit prompts for authentication as needed (via a graphical or tty agent).

How do I run a basic aptdcon example?

Run `aptdcon --install "[package1 package2]"` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -i _PKGS_, --install _PKGS_ do in aptdcon?

Install the listed packages.