Re: pkg-static: Warning: Major OS version upgrade detected.
- Reply: Dag-Erling_Smørgrav : "Re: pkg-static: Warning: Major OS version upgrade detected."
- Reply: John Kennedy : "Re: pkg-static: Warning: Major OS version upgrade detected."
- In reply to: Ian Freislich : "Re: pkg-static: Warning: Major OS version upgrade detected."
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 10 Sep 2025 15:23:01 UTC
Ian Freislich <ianfreislich@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.
DES
--
Dag-Erling Smørgrav - des@FreeBSD.org