LinuxCommandLibrary

pkcon

Command-line client for PackageKit

TLDR

Install a package

$ pkcon install [package]
copy
Remove a package
$ pkcon remove [package]
copy
Refresh package cache
$ pkcon refresh
copy
Update all packages
$ pkcon update
copy
Search for a package
$ pkcon search [package]
copy
List all packages
$ pkcon get-packages
copy

SYNOPSIS

pkcon [install|remove|update|search|refresh] [options] [package]

DESCRIPTION

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.

PARAMETERS

-y, --noninteractive

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

COMMANDS

install

Install packages
remove
Remove packages
update
Update all installed packages
search
Search for packages by name
refresh
Refresh package cache
get-packages
List all available packages
get-updates
List available updates
get-details
Show package details

CAVEATS

Operations may be slower than native package managers. Not all backend features are exposed. Some distributions don't enable all PackageKit backends. Requires PackageKit daemon running.

HISTORY

PackageKit was created by Richard Hughes to provide a unified interface for Linux package management. It was designed to allow desktop applications to manage packages without knowing which package manager the distribution uses.

SEE ALSO

apt(8), dnf(8), flatpak(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community