← 返回命令列表

Linux command

pkcon 命令

文本

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

常用示例

Install

pkcon install [package]

Remove

pkcon remove [package]

Refresh

pkcon refresh

Update

pkcon update

Search

pkcon search [package]

Example

pkcon get-packages

说明

pkcon is the command-line client for PackageKit, a cross-distribution package management abstraction layer. It provides a consistent interface regardless of the underlying package manager (apt, dnf, zypper, etc.). PackageKit is used by graphical software centers like GNOME Software and KDE Discover. pkcon provides the same functionality from the command line.

参数

-y, --noninteractive
Automatic yes to prompts
-p, --plain
Plain text output
--filter _filter_
Filter results (installed, devel, etc.)

FAQ

What is the pkcon command used for?

pkcon is the command-line client for PackageKit, a cross-distribution package management abstraction layer. It provides a consistent interface regardless of the underlying package manager (apt, dnf, zypper, etc.). PackageKit is used by graphical software centers like GNOME Software and KDE Discover. pkcon provides the same functionality from the command line.

How do I run a basic pkcon example?

Run `pkcon install [package]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -y, --noninteractive do in pkcon?

Automatic yes to prompts