> pkg_add-ing multiple packages, and pkg_add -u, lists out messages such > as "You should also run rm -fr /var/spool/clamav/*" at the end of a > batch.
It is likely the message indicates the directory is non empty, so it's not automatically removed. This most probably is not part of the package install or deinstall notices, however. For interactive use, run pkg tools in tmux(1) and access the scroll buffer with prefix (C-b) [ or start a script(1) session for recording the output of the terminal in a file. Or simply redirect stdout and stderr to a file for later review for non interactive use. From the FAQ: http://www.openbsd.org/faq/faq15.html#PkgInstall http://www.openbsd.org/faq/faq15.html#PkgRemove Some packages have further details in /usr/local/share/doc/pkg-readmes after installation. Configuration is not overwritten, non empty dirs and not removed etc. In this case the package gets re-installed for the update (pkg_add -u) so it may not be required to perform the deinstall suggestions. Verbosity is controlled by (multiple) -v flags. For install and deinstall notices, check options -M and -U in the man page: $ man pkg_info In practice this shows both for your installed packages: $ cd /var/db/pkg; pkg_info -MU * | less It is a good idea to remove unused dependencies with pkg_delete -a after updating packages, and to remove partial packages if any (or redo their installation / fix issues). $ ls -ld /var/db/pkg/partial* As a last resort, if you have trouble with packages, read this: $ man pkg_check > man pkg_add and pkg.conf shows me that the information is stored in > ${PKG_DBDIR}, but I'm not seeing how I could retrieve the appropriate > long information lines just from the last pkg_add . You can look further into how pkg tools internals work. This man page contains a "LIST OF MODULES" section at the end. $ man OpenBSD::Intro To display the file name and then view the source of the respective module you're interested in, e.g. OpenBSD::Add, do this: $ perldoc -lm OpenBSD::PkgAdd $ less $(perldoc -lm OpenBSD::PkgAdd)