From nobody Wed Mar 25 21:15:30 2026 X-Original-To: freebsd-pkgbase@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 4fh07M67zgz6Wnk1; Wed, 25 Mar 2026 21:15:43 +0000 (UTC) (envelope-from ivy@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 "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fh07M5Nhcz3twJ; Wed, 25 Mar 2026 21:15:43 +0000 (UTC) (envelope-from ivy@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1774473343; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=PoFrGxyKOw8KrBdt6e2JxrF2W7mvh6XfpfYI9q36gQ8=; b=B+peW0ifJG+G43VcPWaTcTcTmdJ2Vn5FtISNCrmsqF9tma/2w0MqEhCK0j6IKo6HcC2XeO 5c9CQBhd0zdwKcPq3ff8A4NitlupFe49hXR4aUMrdFmw6CufYdn6tkMX6k/vTVPP2pbfMd fw5kmTatIUhEwlB+U1TCiSLxdWrVaw4OPB66z+oGBSJhOiw5ymKPedWwbcnz70qJXm+IQA fpI6tQlohA/rRUASYqGr7/8b5XZLRi5f5V5rP5k+yiE7NKH/R2G3r8IjqI6ZwrSaVkmtck h6vhbK7dg3ILJv5S5uzapyU2Jj2uY1IWYiVq814B3cEk4gBdXLB9I6VAebpLAg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1774473343; a=rsa-sha256; cv=none; b=gsic86Z9A4C2tAnKVIcFVEZSFMRPf0qwUjzgGgLKRY1E2aykm4yKZl1wIEvCUu0hguTJlS nKZAIv5z6iKCGFkX9Q31UTRe2WhjfYSj72SYVqi1bIY/i/lQMVTlLJpHQlbftlSh3nZplt mOWOGvGX4EG2GA5NUDg+xyJMN3ajdkzqCakVrZqCMwZBLAW2Xx+W/asdu75+E1kN9eKTUr MSBI/QpgxSADBKIhz3D/15P8KZQNpUJgwo30rwnemOu0rkuFtEiU4LH/QGi+xI0nq5E8Mf VRSFxh4RXpZsDjhj77GHbCb9/hXgAYuxMAwAZliCUr8rENSfRREjJNgAsdTkeA== 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=1774473343; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=PoFrGxyKOw8KrBdt6e2JxrF2W7mvh6XfpfYI9q36gQ8=; b=GSuvT2LlRj9GdDuyJMBth1TEZ8ez8sHKzFkG9wqsJHQ5otJr9wbuMTJ7bIF2vFNR1GZgVu EuanJIpzJ/Nl0586bQlv4CwfobKo9gBAIs/FukhB0X7fYASGMcOG8kdg4pFIDx1ZHgc5Ak f0yeYO1Q07iAM4s76TWY9gLkfdThYid4XpN+wBRPAKh6XK+24lcSKpPlYLsZfmJj8OXFhV v4dCW40dEFmEdVo/AlRfZFmHlAA6CR7WbQJyHbSzCpD5h1UTd4owGgYT2Z9SxvY5Ig9XOf 4HJ8PmG2vncAdbA1BKUvzOWZSG+fls2LMjTV4yiCQj/kqp/BwQrJ6ikV3bSYNw== Received: from amaryllis.le-fay.org (amaryllis.le-fay.org [IPv6:2a00:1098:6b:400::9]) (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: ivy/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4fh07M2Rxpzyhv; Wed, 25 Mar 2026 21:15:43 +0000 (UTC) (envelope-from ivy@freebsd.org) Date: Wed, 25 Mar 2026 21:15:30 +0000 From: Lexi Winter To: freebsd-pkgbase@freebsd.org, freebsd-questions@freebsd.org Subject: Re: installing world from src on a pkgbase system Message-ID: Mail-Followup-To: freebsd-pkgbase@freebsd.org, freebsd-questions@freebsd.org References: List-Id: Packaging the FreeBSD base system List-Archive: https://lists.freebsd.org/archives/freebsd-pkgbase List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkgbase@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="feR3mgzwvxTXB0Ws" Content-Disposition: inline In-Reply-To: --feR3mgzwvxTXB0Ws Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Wismos@proton.me wrote in : > i have been trying pkgbase for a while but there is one specific topic > that's still not very clear to me is how do i go around only > inatalling world from src on a pkgbase system you build the system from source, then you build a package repository, then you install packages from the repository. assuming your src is in /usr/src: % cd /usr/src % make buildworld buildkernel update-packages this builds a package repository in ${REPODIR}, which is by default, i think, /usr/obj/repo. =20 to upgrade from this repository, you need a suitable pkg(8) repository configuration, such as: base { url: "file:///usr/obj/repo/${ABI}/latest", enabled: yes } i haven't tested this recently, so the paths there might not be entirely correct. you will need to disable the 'FreeBSD-base' repository that bsdinstall creates; the easiest way to do this is to simply rm /usr/local/etc/pkg/repos/FreeBSD-base.conf. you should then be able to do 'pkg upgrade' to upgrade from the packages you built. > make packages requires you to do both buildworld and buildkernel, you should use 'make update-packages', not 'make packages'. but yes, either of those targets require you to build the world first, because that's what creates the binaries in the packages. > it also requires you to setup a local repo using nginx(as far as i can > read from the handbook) no, it doesn't. if the handbook says that, it's wrong; unfortunately the documentation for pkgbase is fairly poor right now. but as you can see from what i said above, it's possible to do this using only local files, you do not need a web server. >i tried to do just pkg add * from the >/usr/obj/usr/src/repo/FreeBSD:${ABI}.xxxx/xxxx and that obviously >messed up my system pretty bad that's wrong and you shouldn't do that. > so i was wondering if there was a way to build packages of only base > without having buildkernel as well currently, you have to build both world and kernel to create a package repository. > and if there was a way to install those packages without having to go > through setting up a server with nginx you do not need to set up nginx for this. > and as far as i am aware packageworld target is only for release > targets and not for me "make packageworld" is nothing to do with pkgbase, despite the name; it's related to some other, not relevant distribution methods. --feR3mgzwvxTXB0Ws Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSyjTg96lp3RifySyn1nT63mIK/YAUCacRQawAKCRD1nT63mIK/ YHa/AQCzT2Pq0Hks55TV50qgfTgbsxDIVzsCveX+bs2ogCq0nQEAvuA/MyRQ/kx+ BKi909ww+mtR+CbpT7F/QtdnZxD5Rws= =HC5Q -----END PGP SIGNATURE----- --feR3mgzwvxTXB0Ws--