Skip to content

Package Helpers

Utility functions for working with package operations.

FunctionDescription
AlpineDependencyOne package reference of an Alpine (apk) `depends` list.
AlpineOperatorThe operators of an Alpine (apk) version constraint, as apk writes them: the five comparisons;
ArchDependencyOne package reference of an Arch Linux `depends` array.
ComparisonOperatorThe operators of an RPM or Arch Linux version constraint.
DebianDependencyOne package reference of a Debian relationship field: `name[:arch] [(op version)] [[archs]] []`.
DebianDependencyOptionsOptions of the Debian format of parseDependencies.
DebianOperatorThe operators of a Debian version constraint (Debian Policy 7.1): `<<` (strictly earlier), `<=`, `=`, `>=` and `>>` (st…
DependencyConstraintA version constraint such as the `(>= 2.34)` of `libc6 (>= 2.34)`, with the operator spelled as the format spells it.
parseDeb822Parses a deb822 document, the format of Debian `Packages`, `Sources` and `Release` indexes, `control` and `.dsc` and `.…
parseDependenciesParses the value of a package dependency field (`Depends`, `Requires`, `depends`, …) into a structure: groups of alte…
Pep508DependencyOne requirement of a PEP 508 dependency specification.
Pep508OperatorThe operators of a PEP 440 version specifier, as PEP 508 requirements use them.
RpmDependencyOne package reference of an RPM `Requires` field.
stringifyDependenciesWrites dependency groups back as a field value, the inverse of parseDependencies;