From nobody Fri Sep 06 19:01:59 2024 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4X0lvs026Pz5VVqD for ; Fri, 06 Sep 2024 19:02:01 +0000 (UTC) (envelope-from des@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X0lvr5yZ0z4kRH; Fri, 6 Sep 2024 19:02:00 +0000 (UTC) (envelope-from des@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725649320; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=S0VA5IsfEafRasGxzN9RBYq1wlL6zeEkj8xQEdZpUmU=; b=Lr4mTTMGtlKjhb0P82RPnNf9mSujdHoINsioc2+NwBBwLPofQZg6FHyi5wVLRfrqByErAE il4Cn/rqcG2zGJn5MfJ8DcvqotPyUGtIopYXFo6bDGnJRVznu+z2qdx3B67Myb+AP92WIN XNWI/Zu2q0uFMDD18YGPYDyMkB4yO1/GzdL4WDOeOu+tGPOFJ8BuboRR1NfOZ7nwlEbmIc 4HcZSJU25Hwl0G9/uP0WfQ72Np0fjEASxGe8KYOtF0bDoAwc8+aA7M5Drfcu2wy8DCRkmJ lLIHd/U5b+2sSLSdh0MCPqG8szSec5o/oWoVBAbtSfjnLY2Cph07sAx0BYA51w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725649320; a=rsa-sha256; cv=none; b=qZ9zjugrRDUibUdlNvtBzDf3lSfrKvbnmDB1eYDDC373G7bClFulSXYcGkiTxZyFC1qPci UxNwyGCtSJfqN2AGO0thyAaz47tTPO7Gw2KNkxRyKCeMPi+EnjFt2SFWt5XgpN4hvlQETo xtNWpRQVqCer9dpqp0+225Ts99k4B1LqZ2gpqv1I3EJ8fekuuXJgfR/ZAHxIkwtu/Dhfte z4dDrSSJDbhxGVgXFpmKgsQWFGYPYno9wn2hg5ngnj8hFcRVQ5WzxmiIOHviMjW7GZoZ/l WNT758DmSreW6Bssl8dAB1lVzD1kLPbX+J0AD1KGKo4J4XzAGWFgVXqwwbacVA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725649320; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=S0VA5IsfEafRasGxzN9RBYq1wlL6zeEkj8xQEdZpUmU=; b=UkuMB0vzipnspxHv7pyxJw/prHVB6tFeH9Z2WebfD5VWryNpgs8StBUnoOv6BCML+RsQVX gSDIkybV/oaXG9JXmJcZlbB0y1W/pNERRMnlKNuZj5mF9Dqy9OY5szTnzpn8asNXvu2Utn xeXtXy7TezwBLibZOrNeYHYw0iGg4STDOo/Tte0aDHiQYUnkhDUhTiNgtBzHFODvR2dUQX k0vgVvyd6K+73ij67KPUbDAMW8HdzNNf6fppGzRhAX1hUh7hd5unAGeacDiFPqVyEIu6aF eVH31KUV17dLIKab9x1Oj+stM7nO/kSdmbp708agwl59TROapATh+ACICypIfg== Received: from ltc.des.dev (unknown [91.174.26.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: des) by smtp.freebsd.org (Postfix) with ESMTPSA id 4X0lvr50n8zWvy; Fri, 6 Sep 2024 19:02:00 +0000 (UTC) (envelope-from des@freebsd.org) Received: by ltc.des.dev (Postfix, from userid 1001) id 23271BAE67; Fri, 06 Sep 2024 21:01:59 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Sad Clouds Cc: freebsd-questions@FreeBSD.org Subject: Re: How to upgrade custom release In-Reply-To: <20240905190801.990f63880ba706a56a065a34@gmail.com> (Sad Clouds's message of "Thu, 5 Sep 2024 19:08:01 +0100") References: <20240905190801.990f63880ba706a56a065a34@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Fri, 06 Sep 2024 21:01:59 +0200 Message-ID: <86o7501u8o.fsf@ltc.des.dev> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sad Clouds 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//pkgbase and poudriere will build base packages every time you update the jail: # poudriere jail -j -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