Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Sep 2024 21:01:59 +0200
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@FreeBSD.org>
To:        Sad Clouds <cryintothebluesky@gmail.com>
Cc:        freebsd-questions@FreeBSD.org
Subject:   Re: How to upgrade custom release
Message-ID:  <86o7501u8o.fsf@ltc.des.dev>
In-Reply-To: <20240905190801.990f63880ba706a56a065a34@gmail.com> (Sad Clouds's message of "Thu, 5 Sep 2024 19:08:01 %2B0100")
References:  <20240905190801.990f63880ba706a56a065a34@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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
--=20
Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86o7501u8o.fsf>