packagekit
0.2.8, released 3 weeks ago by canonical.com
Client for connecting to PackageKit to manage Linux software packages.
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.
- flutter_background_service_platform_interface
Platform interface for flutter_background_service plugin
50Compare
Works with
Packages commonly used together with packagekit: ones it builds on, ones built on it, and its own family.
- dbuspackagekit depends on itNative Dart D-Bus client for Linux and Windows.
- nmSame familyClient for interacting with Linux NetworkManager via D-Bus
- gsettingsSame familyClient to access GSettings database for storing user preferences on Linux.
- geoclueSame familyDart client for the GeoClue D-Bus geolocation service on Linux.
- upowerSame familyProvides a client to connect to UPower for Linux power management.
- bluezSame familyA Dart client for interacting with the Linux BlueZ Bluetooth stack via D-Bus.
- desktop_notificationsSame familySend Linux desktop notifications via DBus.
- xdg_desktop_portalSame familyA native Dart implementation of portals for Linux desktop applications.