Date: Wed, 10 Sep 2025 17:23:01 +0200 From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@FreeBSD.org> To: Ian Freislich <ianfreislich@gmail.com> Cc: Kyle Evans <kevans@FreeBSD.org>, "Patrick M. Hausen" <pmh@hausen.com>, FreeBSD Current <current@freebsd.org> Subject: Re: pkg-static: Warning: Major OS version upgrade detected. Message-ID: <86qzweib6y.fsf@ltc.des.dev> In-Reply-To: <199341111f0.28c3.64e08aff09ba5a21b2fc9010d26a90e5@gmail.com> (Ian Freislich's message of "Wed, 10 Sep 2025 10:39:18 -0400") References: <6dedf742-48bf-4b67-9993-67933104ba67@gmail.com> <7C4AA985-2F06-4580-93C8-374A75EC4965@hausen.com> <bfb0366e-de86-4dae-ae1e-c8dad45e79f4@FreeBSD.org> <e1aef468-97ff-491e-957f-1088d03cc5e4@gmail.com> <86v7lqigv6.fsf@ltc.des.dev> <199341111f0.28c3.64e08aff09ba5a21b2fc9010d26a90e5@gmail.com>
index | next in thread | previous in thread | raw e-mail
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
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86qzweib6y.fsf>
