Re: installing world from src on a pkgbase system
| Newsgroups | gmane.os.freebsd.questions,gmane.os.freebsd.devel.pkgbase |
|---|---|
| Message-ID | <gpK9lhsjhtPcOvkF2PntK0KQuHsmST3D5lhWXHMWwPzyG_W-rhf3EPQuwZz4EtS4mZJTpTjj8jEpYdM4lE6sKNa0BMedINrglXnSY4JpHcU=@proton.me> |
hi, i asked for a method that allows me to install pkgbase world packages without having to buildkernel and make buildkernel and make packages means building kernel, i am not looking for some sort of hack as well Thank you -------- Original Message -------- On Thursday, 03/26/26 at 02:09 vermaden <[email protected]> wrote: 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