pkg-not(5 Oct 2025)

NAME
pkg-not - list files on disk that are not owned by any installed package

SYNOPSIS
pkg-not [-wl <Whitelist>] <Directory1> [<Directory2> ...]

DESCRIPTION
pkg-not uses find(1) to list the contents of the directories passed as argument, and then compares that list with the package database to identify all the files not associated with any installed package.

The list might be incomplete if the user lacks permission to traverse the directory tree completely.

The list might include files that were generated by a post-install script, rather than during the pkgmk(8) build function. To exclude such files from future reports, populate a whitelist with these filenames (one per line), and pass the whitelist to pkg-not with the -wl option.

EXAMPLES

    pkg-not /etc/ssl/certs > post-installed-certs.wl

    pkg-not -wl post-installed-certs.wl /etc

    pkg-not /usr/lib/python3.12/site-packages

AUTHORS
Jose Beneyto <sepen at users dot sourceforge dot net>

John McQuah <jmcquah at disroot dot org>

SEE ALSO
prtcheckmissing(1)