PKG.ADD.CONF

package installation rules

Synopsis

/etc/pkg.add.conf

Description

pkg.add.conf

controls how pkg.add(8) handles files during installation and upgrade. Rules determine which files are installed, skipped, or preserved.

Syntax

Each line has the form:

EVENT PATTERN ACTION

Blank lines and lines beginning with # are ignored. Rules are evaluated in order; the

last

matching rule wins.

EVENT

UPGRADE
Applies when upgrading an existing package ( pkg.add -u ).
INSTALL
Applies when installing a new package.

PATTERN

An extended regular expression matched against the file path (without leading /).

ACTION

YES
Install or upgrade the file normally.
NO
On INSTALL: skip the file entirely. On UPGRADE: keep the existing file, do not overwrite.

Examples

# Keep existing configuration files on upgrade
UPGRADE ^etc/.*$  NO

# But always upgrade /etc/skel
UPGRADE ^etc/skel  YES

# Never install info directory
INSTALL ^usr/share/info/dir$  NO

See Also

Pure LLVM musl libc Source-Based Independent