Skip to main content

Compare FreeBSD pkg files by metadata.

Project description

Compare FreeBSD pkg files by metadata

pkgdiff is a plugin for the FreeBSD package manager pkg as well as a Python extension for comparing package files by their metadata.

To that end it uses libpkg (distributed along with the pkg commandline tools), to open and parse package files and either a basic string compare or a line-by-line diff algorithm to complare the metadata fields.

How to install

The Python extension is easily installed by running:

pip install pkgdiff

Basic usage

import pkgdiff

if pkgdiff.compare('pkg-1.14.5.txz', 'pkg-1.14.6.txz', exclude=['version']):
    print('packages are equal (ignoring version)')

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pkgdiff-0.1.tar.gz (21.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page