From nobody Wed Mar 25 21:40:21 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 4fh0gy1mGQz6WpqC; Wed, 25 Mar 2026 21:40:30 +0000 (UTC) (envelope-from polyduekes@proton.me) Received: from mail-43166.protonmail.ch (mail-43166.protonmail.ch [185.70.43.166]) (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 "protonmail.com", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fh0gx6087z417w; Wed, 25 Mar 2026 21:40:29 +0000 (UTC) (envelope-from polyduekes@proton.me) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1774474827; x=1774734027; bh=Wi63vGlbP8nMsASyacUoKv9AnxQtmpO7uyQ47SjXLYM=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=WSllYb+irKl7XWjNw6PJUj5lfSrV6a2nzyh30RXDxqZR1UOM81ltFck+p7BB3A/6z htshjOOmqVw6uLcCHrOPujaUYppnSbmZeJz+C5pDKg49B3DsPi0I8DTZ4s7jdu5xGU dbUy1Zu2JP/MOM/3HxTZYaY8ZKic3aDY8qmP9cyQezeWRloG/0w5ViygH9SFtgFhRD aOkNg1cHAFggP3LCicPVW3dHb35wL6hTw4GXZ2EK7VbbfSbVq7bCUX6XMjXvteMqh7 O5i9KTjT9n/kIeWDv5iExBMqP7b4ymDHtksHlsUxf8EE7fX6wMrgKQ7MYhL4nSBVVr thW39QGH5REAA== Date: Wed, 25 Mar 2026 21:40:21 +0000 To: Lexi Winter From: polyduekes@proton.me Cc: freebsd-pkgbase@freebsd.org, freebsd-questions@freebsd.org Subject: Re: installing world from src on a pkgbase system Message-ID: In-Reply-To: References: Feedback-ID: 94987605:user:proton X-Pm-Message-ID: ee2f9e4a28f69da0576dc6b17a7ee8bc3ff4fb73 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: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:62371, ipnet:185.70.43.0/24, country:CH] X-Rspamd-Queue-Id: 4fh0gx6087z417w X-Spamd-Bar: ---- hi there, thanks for the response is needing to do both buildworld and buildkernel to create a pkg repo the i= ntended behaviour or is that planned to change additionally may i ask why it's recommended to do 'make upodate-packages' o= ver 'make packages' Thank You -------- Original Message -------- On Thursday, 03/26/26 at 02:45 Lexi Winter wrote: 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. to upgrade from this repository, you need a suitable pkg(8) repository configuration, such as: =09base { =09=09url: "file:///usr/obj/repo/${ABI}/latest", =09 enabled: yes =09} 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.