Re: How to upgrade custom release

From: Dag-Erling_Smørgrav <des_at_FreeBSD.org>
Date: Fri, 06 Sep 2024 19:01:59 UTC
Sad Clouds <cryintothebluesky@gmail.com> writes:
> Hello, could anyone please suggest a good way to upgrade FreeBSD base
> system which was built with custom options in src.conf.

https://wiki.freebsd.org/PkgBase

The best way to build base packages is with ports-mgmt/poudriere.  If
you create a jail from source and include the -B option, poudriere will
build packages both on initial creation and every time you upgrade it.
If you already have a jail built from source but it isn't set to build
base packages, you can simply run

    # echo 1 > /usr/local/etc/poudriere.d/jails/<jailname>/pkgbase

and poudriere will build base packages every time you update the jail:

    # poudriere jail -j <jailname> -J $(nproc) -u

When updating a system that runs pkgbase, I usually run `pkg -g upgrade
FreeBSD-runtime FreeBSD-kernel-\*` first, then `pkg upgrade` to get the
rest.

Note that pkgbase is unfinished and there are still rough edges, but it
works well enough if you're vigilant.

DES
-- 
Dag-Erling Smørgrav - des@FreeBSD.org