OpenBSD manual page server

Manual Page Search Parameters


pkg_check-problemsverify problems in package collections

pkg_check-problems [-CDesv] [-d plist_dir] [-o output] [-p ports_dir] [pkgname ...]

pkg_check-problems is used to check a collection of packages for problems that cannot be noticed in individual packages, such as conflict and directory registration issues.

A conflict is a file that belongs to two distinct packages.

By default, packages with the same stem (see packages-specs(7)) are registered to conflict. This can be changed to add or remove extra conflict registration with @option no-default-conflict or @conflict (see pkg_create(1)).

Conflicts between packages mean that a user can't have both packages installed at the same time. In some cases (same software, different version), this is expected, but the packages should be marked as conflicting, so that pkg_add(1) knows how to deal with it. In other cases, this is an oversight from the ports maintainer, and action should be taken to make sure both packages can be installed simultaneously. Conflicts also interact with dependencies, and sometimes a missing dependency will show up as an unregistered conflict.

Directories can belong to distinct packages, as long as they are registered somewhere. Every directory that is not part of the standard mtree(8) set should appear in a packing-list somewhere.

Contrary to files, directories can be shared between several packages.

pkg_check-problems knows enough about packages to trace directories back to a common dependency, or to not flag two packages as conflicting when they depend on already conflicting packages.

pkg_check-problems requires a set of packing-lists to operate, which it can obtain from several sources. The preferred source is the packing-list databases (see PACKAGE_REPOSITORY in and register-plist(1)), as it persists over time and can be used to fix update information as well as current version information.

It should be supplemented with the ports tree itself in order to figure out current versions.

Options are as follows:

Do not compute conflict information.
Do not compute common dir information.
Check for extra logical conflicts, by adding supplementary formatted/unformatted manpages, as same name manpages under the same base directory will shadow one another.
Save results to output file as well as writing it on the screen.
Be silent.
Be verbose.
Scan directory plist-dir for packing-lists.
Traverse the ports directory for packing-lists, using print-plist-all. More than one directory could be specified by delimiting them by colon, e.g.: /usr/ports/x11/kde:/usr/ports/x11/kde4.

If -d plist-dir is also used, traverse only the directories corresponding to the packages under plist-dir to figure out current pkgnames, and annotate those with a ‘!’ in the report.

Dependency not found zarafa-webaccess-7.1.11p2
Dependency not found kwebkitpart-1.2p3
Common dirs:
!claws-mail-gdata-3.11.1p1-ldap(mail/claws-mail,-gdata,ldap): /usr/local/lib/claws-mail
!claws-mail-pdfviewer-3.11.1p1-ldap(mail/claws-mail,-pdfviewer,ldap): /usr/local/lib/claws-mail

pkg_add(1), pkg_create(1),, packages-specs(7)

July 10, 2018 OpenBSD-6.5