From nobody Wed Mar 25 20:38:52 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 4fgzK30kjBz6WlNt; Wed, 25 Mar 2026 20:39:03 +0000 (UTC) (envelope-from vermaden@interia.pl) Received: from smtpo75.interia.pl (smtpo75.interia.pl [217.74.67.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4fgzK25RrYz3qmw; Wed, 25 Mar 2026 20:39:02 +0000 (UTC) (envelope-from vermaden@interia.pl) Authentication-Results: mx1.freebsd.org; none Date: Wed, 25 Mar 2026 21:38:52 +0100 From: vermaden Subject: Re: installing world from src on a pkgbase system To: "Wismos@proton.me" , "freebsd-pkgbase@freebsd.org" , "freebsd-questions@freebsd.org" X-Mailer: interia.pl/pf09 In-Reply-To: References: X-Originating-IP: 45.148.42.24 Message-Id: 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: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=interia.pl; s=dk; t=1774471134; bh=4oQ2iaAxlxUbmKhE7RFOmFNZEFZOChi7DYYhhiFBAR8=; h=Date:From:Subject:To:Message-Id:MIME-Version:Content-Type; b=L0s9X1kAidl44kRhtx2SrUOcSSXNxH5E7j/9mcDZLjZjh2XyM7UX2sboqD+5omo0L a8X+6qIFGFwZWUvbTKP/5yPPgvkAF1QIiEcH2QLtkP9Cz8M0q0Da20azyXISq1IUnI H7D+G0Pl2VH98guzUXSATqbkMHgWNUts0y1v4xTg= 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:16138, ipnet:217.74.64.0/22, country:PL] X-Rspamd-Queue-Id: 4fgzK25RrYz3qmw X-Spamd-Bar: ---- Something like that: # cd /usr/src # make -j $( nproc ) buildworld buildkernel # make packages This gives You PKGBASE packages here: /usr/obj/usr/src/repo/FreeBSD:15:amd64/latest You then create pkg(8) repo there: # pkg repo /usr/obj/usr/src/repo/FreeBSD:15:amd64/latest Creating repository in .: 100% Packing files for repository: 100% Create pkg(8) repo file. # cat /etc/pkg/FreeBSD-base.conf FreeBSD-base: { url: "file:///usr/obj/usr/src/repo/FreeBSD:15:amd64/latest", enabled: yes } Then create new dir (or mount disks there): # mkdir -p /NEW /NEW ... and populate that PKGBASE installation using bsdinstall(8) as follows. # export BSDINSTALL_CHROOT=/NEW # export BSDINSTALL_PKG_REPOS_DIR=/usr/obj/usr/src/repo/FreeBSD:15:amd64/latest # env TERM=xterm bsdinstall pkgbase After its finished - you have FreeBSD installed using PKGBASE inside /NEW dir. The 'env TERM=xterm' part is optional - makes sure you start bsdinstall(8) in colors. Regards, vermaden > Hi there, 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 installing world from > src on a pkgbase system > > make packages requires you to do both buildworld and > buildkernel, it also requires you to setup a local repo > using nginx (as far as i can read from the handbook) > >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 > > so i was wondering if there was a way to build > packages of only base without having buildkernel as > well and if there was a way to install those packages > without having to go through setting up a server with > nginx and as far as i am aware package world target > is only for release targets and not for me