NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev
pub.dev, #4001 most downloaded on pub.dev
Dart FFI bindings for PackageKit, the cross-distro Linux package manager. Search, install, update, and remove packages via D-Bus with async streams.
Latest stable
0.5.0
Last release 3 months ago
13 Aug 2026
Ships fairly regularly
a new release about every 2 months
Nearly every release is documented
notes for 8 of 8 stable releases
Nothing withdrawn
no release was ever pulled
7 months old
8 releases · first in 2026
Drag across the ruler to compare, or tap a release to open it.
Breaking: migrate the native build hook from hooks 1.x to 2.x (and code_assets to 1.2.x). hooks 2.x requires Dart >=3.10, so the SDK lower bound rises
hooks 1.x to 2.x (and
code_assets to 1.2.x). hooks 2.x requires Dart >=3.10, so the SDK lower
bound rises from 3.6.0 — consumers on Dart 3.6–3.9 should stay on 0.4.x. The
hook's behaviour is unchanged (it still builds libpackagekit_nc.so via CMake
and skips cleanly when cmake/ninja/sd-bus are absent); the migration is a
dependency bump only, verified end to end against a consumer build.native_toolchain_c dependency: it was declared but never imported
(the hook drives CMake directly rather than CBuilder).A build-hook fix so the package installs on hosts that lack the native-bridge toolchain.
A build-hook fix so the package installs on hosts that lack the native-bridge toolchain.
ProcessException (only a present-but-failing tool was
handled), failing the whole build hook and blocking dart pub get / install
for every consumer on such a host. Probing first also avoids a needless
sdbus-cpp clone.Your coding agent can read these notes before it upgrades. Set up the MCP server →
One column per month.
Documentation only — no code change.
Documentation only — no code change.
$HOME, where
running as root leaves artifacts the user can no longer modify. Keeping the
client unprivileged is what PackageKit exists to make possible.refreshCache maps to system-sources-refresh, which needs no
authorization for a caller in a login session but does for one without —
the CI and WSL case.Documentation only — no code change. Released so the README rendered on pub.dev stops handing out a polkit rule that does nothing on Debian/Ubuntu.
Documentation only — no code change. Released so the README rendered on pub.dev stops handing out a polkit rule that does nothing on Debian/Ubuntu.
wheel — the admin
group on Fedora/RHEL/Arch but not on Debian/Ubuntu, where it is sudo. A
wheel-only rule silently does nothing on Debian and is hard to diagnose,
because the rule looks installed and the error is unchanged. Match both.sudo is not the same thing, and usermod does not
affect a running session. All three produce the same unchanged denial.Send the interactive hint on every transaction. The daemon treats an absent hint as false, which strips ALLOW_USER_INTERACTION from its polkit check —
interactive hint on every transaction. The daemon treats an
absent hint as false, which strips ALLOW_USER_INTERACTION from its polkit
check — so any transaction needing authorization failed synchronously with
PkError.notAuthorized and a 0 ms runtime, on any host where the polkit
action is auth_admin and the caller is not root.PkClient.connect({bool interactive = true}) and the matching
PkClient.interactive getter. Interactive is the default: transactions that
need authorization now prompt instead of failing. Pass interactive: false
for unattended callers that must fail fast rather than block on a prompt —
it suppresses the prompt, it does not grant authorization.pk_transaction_set_hints takes a third parameter,
bool interactive. Consumers linking libpackagekit_nc directly must
update their declaration; consumers using the build hook are unaffected,
as it compiles the library from source.Point repository and issue_tracker at the jwinarske fork, fixing pub.dev repository verification.
repository and issue_tracker at the jwinarske fork, fixing
pub.dev repository verification.Extract TransactionDispatcher and dispatchManagerEvent for testable message dispatch without a live daemon
Native build hook (hook/build.dart) using package:hooks and package:code_assets — automatically compiles libpackagekit_nc.so via CMake at build time a
hook/build.dart) using package:hooks and
package:code_assets — automatically compiles libpackagekit_nc.so via
CMake at build time and bundles it as a CodeAssetexample/packagekit_catalog/) — Material 3 desktop
catalog with Riverpod state management, GoRouter navigation, search,
installed packages, updates, and repository views