PKG.CONF(5)

NAME
pkg.conf - System-wide configuration file for pkg(1)

DESCRIPTION
pkg.conf is the system-wide configuration file used by the pkg(1) tools.

The default location of this file is /usr/local/etc/pkg.conf

Lines in the file beginning with a "#" are comments and are ignored.

The file is in YAML format. For more information on the syntax of YAML, please visit the official YAML website - http://www.yaml.org/.

The following types of options are recognized - boolean, string and list options.

A boolean option is marked as enabled if one of the following values is specified in the configuration file - YES, TRUE and ON.

OPTIONS
The following options can be defined in pkg.conf:

ASSUME_ALWAYS_YES: boolean
    When this option is enabled pkg(1) will automatically assume "yes" to all questions which require user confirmation before doing anything, as if it the -y flag was specified. By default this option is disabled.

PUBKEY: string
    Specifies the location to the public RSA key used for signing the repository database. The default value for this file is /etc/ssl/pkg.conf

HANDLE_RC_SCRIPTS: boolean
    This option when enabled will automatically perform start/stop of services during package installation and deinstallation. Services are started on installation only if they are enabled in /etc/rc.conf. By default this option is disabled.

PACKAGESITE: string
    Specifies the remote location to use when fetching the database file and packages. This supports using ${ABI} to create a dynamic URL based on the ABI being used.

PKG_CACHEDIR: string
    Specifies the cache directory for packages. The default value for this option is /var/cache/pkg

PKG_DBDIR: string
    Specifies the directory to use for storing the package database files. The default value for this option is /var/db/pkg

PKG_MULTIREPOS: boolean
    This option when enabled will tell pkg(1) to work in multiple repositories mode. For example repositories definitions, please have a look at the sample configuration file.

PLIST_KEYWORS_DIR: string
    < To be added >

PORTSDIR: string
    Specifies the location to the Ports directory. The default value for this option is /usr/ports

SYSLOG: boolean
    This option is enabled by default, log all the installation/deinstallation/upgrade operation via syslog(3)

SHLIBS: boolean
    Analyse elf and track all shared libraries needed by the packages. This option is silently ignored by pkg-static(8) since it relies on dlopen(3) which is unavailable to statically linked programs. default: off

AUTODEPS: boolean
    Analyse the elf to add dependencies (shared libraries) that may have been forgotten by the maintainer. This option is silently ignored by pkg-static(8) since it relies on dlopen(3) which is unavailable to statically linked programs. default: off

ABI: string
    the abi of the package you want to install, by default the /bin/sh abi is used

DEVELOPER_MODE: boolean
    Makes certain errors immediately fatal. Adds various warnings and suggestions to the output of pkg(1) as an aide to port maintainers, including indicating when the port might be marked as architecture independent. default: off

PORTAUDIT_SITE: string
    Specifies the remote location to use when fetching the portaudit database. See pkg-audit(8) for more information.

ENVIRONMENT
An environment variable with the same name as the option in the configuration file always overrides the value of an option set in the file.

SEE ALSO
pkg(8), pkg-add(8), pkg-audit(8), pkg-autoremove(8), pkg-backup(8), pkg-check(8), pkg-clean(8), pkg-create(8), pkg-delete(8), pkg-fetch(8), pkg-info(8), pkg-install(8), pkg-query(8), pkg-register(8), pkg-repo(8), pkg-rquery(8), pkg-search(8), pkg-set(8), pkg-shell(8), pkg-shlib(8), pkg-stats(8), pkg-update(8), pkg-updating(8), pkg-upgrade(8), pkg-version(8), pkg-which(8)