Skip to content
pubscout

packagekit

0.2.8, released 3 weeks ago by canonical.com

Client for connecting to PackageKit to manage Linux software packages.

$ flutter pub add packagekit
Source repository

What it does

Provides a Dart API over D-Bus to communicate with the PackageKit service. It can query the daemon, list packages, install, remove and get details about software on Linux systems.

AI-written summary of version 0.2.8, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to install, remove or query Linux packages from a Flutter/Dart app
  • You require direct D-Bus interaction with PackageKit without writing low‑level D-Bus code

Skip it when

  • Your app runs on non‑Linux platforms
  • You need a UI‑focused package manager or cross‑platform solution

Strengths

  • Full access to PackageKit features
  • Stream API for property changes
  • Keeps up with latest dbus package

Weaknesses

  • Linux‑only, no support for other OSes
  • Relies on the system's PackageKit daemon being present
  • Documentation is minimal

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
2

Add packagekit to pubspec, ensure the PackageKit service is running on the target Linux system; no extra build steps required.

import 'package:packagekit/packagekit.dart';

var client = PackageKitClient();
await client.connect();
print('Server version: ${client.versionMajor}.${client.versionMinor}.${client.versionMicro}');
await client.close();

Alternatives

Packages that do the same job and could replace packagekit.

Works with

Packages commonly used together with packagekit: ones it builds on, ones built on it, and its own family.