Ian Freislich <[email protected]> writes:
> Thanks, I don't use binary packages and always compile ports so this
> trick will silence pkg. Is there a way to tell pkg that it's local
> only, ie. just for locally compiled ports?
You can disable the default repositories by adding the following to a
file in /usr/local/etc/pkg/repos (these four lines cover 14, 15, and 16
with or without pkgbase):
FreeBSD: { enabled: false }
FreeBSD-base: { enabled: false }
FreeBSD-ports: { enabled: false }
FreeBSD-ports-kmods: { enabled: false }
If pkg complains about not having any repositories, you can define a
local one:
local: { url: "file:///usr/ports/packages/All", mirror_type: "none",
enabled: true }
then run `pkg repo /usr/ports/packages/All` after portupgrade or
whatever it is you use to rebuild your packages. But I really recommend
using poudriere instead.
DES
--
Dag-Erling Smørgrav - [email protected]