PKGMAN.CONF(5) File Formats Manual PKGMAN.CONF(5)

pkgman.confconfiguration file for pkgman

/etc/pkgman.conf

This manual page describes the format of the pkgman.conf file, that contains information for pkgman(1).

Every line can contain one configuration option. The format of the lines is “key value”. Any lines with a hash mark (‘#’) is ignored, as are lines containing only whitespace or empty lines.

The valid configuration options are:

path[:pkg[,...]]
The location where to look for the packages sources. The order of the “pkgsrcdir” options is important as if a package is in multiple directories, pkgman(1) will use the one found first (directories listed first have precedence).

If you want to restrict the packages used from one “pkgsrcdir”, you can append a comma-separated list of packages to be used after the path, using a colon mark (‘:’) to separate the two components.

The directory.
The final directory in the path.

Example:

# Use all packages from the path.
pkgsrcdir /usr/src/pkgsrc-core

# Use only mpv and ffmpeg packages from the path.
pkgsrcdir /usr/src/pkgsrc-desktop:mpv,ffmpeg
yes|no
Run pre/post-install and pre/post-remove scripts. Influences pkgman-install(8), pkgman-update(8), and pkgman-sysup(8) operations.

By default “no”.

yes|no
If set to yes, pkgman(1) will parse version strings and prefer the higher one, even if the one found in the packages sources directories is lower. Influences pkgman-diff(1) and pkgman-sysup(8) operations.

By default “no”.

yes|no
If set to yes, pkgman(1) will interpret “expr” and “filter” patterns in pkgman-list(1), pkgman-printf(1), pkgman-search(1), pkgman-dsearch(1), and pkgman-fsearch(1) operations as regular expression in regex(3) format.

By default “no”.

verbose||disabled
If the readme option is set to something different that disabled, pkgman(1) will notify the user if installed package has a README file.

Print separate information about README files.
Integrate in the result output.
No information about README files.

See pkgman-readme(1) for information how to read those README files.

By default “verbose”.

|disabled
Write the log for pkgman-sysup(8), pkgman-install(8), pkgman-update(8), and pkgman-remove(8) operations.

By default “disabled”.

|overwrite
Write log mode.

By default “overwrite”.

yes|no
When set to yes, log files of successful build will be removed.
The string that contains a path to the log file, where all occurrences of next characters will be replaced by corresponding items:

%n package name
%p package path
%v package version
%r package release number

Example: “/var/log/pkgbuild/%n.log

Unset by default.

command
Use an alternate command instead of pkgmk(8) for the command which is used to build the package.
command
Use an alternate command instead of pkgadd(8) for the command which is used to install the package.
command
Use an alternate command instead of pkgrm(8) for the command which is used to remove the package.
command
Use an alternate command instead of sh(1p) for the command which is used to run the pre/post-install and pre/post-remove scripts.

#
# /etc/pkgman.conf: pkgman(1) configuration
#
# See pkgman.conf(5) for more information.
#

# use local directory first
#pkgsrcdir /path/to/unofficial/pkgsrcs/

# zeppe-lin official
pkgsrcdir /usr/src/pkgsrc-core
pkgsrcdir /usr/src/pkgsrc-system
pkgsrcdir /usr/src/pkgsrc-xorg
pkgsrcdir /usr/src/pkgsrc-desktop

# log options
writelog enabled
logmode overwrite
rmlog_on_success yes
logfile /var/log/pkgbuild/%n.log

# notify the user about README files
readme verbose

# do not prefer higher versions in sysup / diff
preferhigher no

# do not use regex search
useregex no

# run pre/post-install and pre/post-remove scripts
runscripts yes

# End of file.

pkgman(1)

September 9, 2023 Zeppe-Lin