On Wed, Sep 10, 2025 at 05:23:01PM +0200, Dag-Erling Smørgrav wrote: > Ian Freislich <ianfreisl...@gmail.com> 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.
Just to 2nd what DAG said, I disable the stock repos like he said and just have a: [cat /usr/local/etc/pkg/repos/local.conf] local: { url: "file:///usr/local/poudriere/data/packages/16-master/", mirror_type: NONE, enabled: yes } In my case, "master" being my "ports" name (the branch I cloned from git) and 16 being the jail name (tracking the OS major version). The initial bootstrap might be an annoying without FreeBSD ports being available, which is when you can (hopefully) kludge with some of the previous version's packages.