.Dd September 27, 2026 .Dt PKG.CONF 5 .Os .Sh NAME .Nm pkg.conf .Nd pkg configuration .Sh SYNOPSIS .Pa /etc/pkg.conf .Sh DESCRIPTION .Nm tells .Xr pkg 8 where the ports are. Each line holds a directive and its value, separated by white space. Everything after a .Ql # is a comment; empty lines are ignored, and so are unknown directives. .Pp The only directive is: .Bl -tag -width Ds .It Ic portdir Ar directory A directory of ports. It may be given any number of times. If two directories have a port of the same name, the one given later is used. .El .Pp Without a .Ic portdir , .Xr pkg 8 knows no ports. .Sh FILES .Bl -tag -width Ds -compact .It Pa /etc/pkg.conf This file. .El .Sh EXAMPLES The shipped file: .Bd -literal -offset indent portdir /ports/core portdir /usr/ports/libs portdir /usr/ports/devel portdir /usr/ports/fonts portdir /usr/ports/python portdir /usr/ports/perl portdir /usr/ports/opt .Ed .Sh SEE ALSO .Xr pkg 8 , .Xr ports 8