Date: Wed, 25 Mar 2026 21:38:52 +0100 From: vermaden <vermaden@interia.pl> To: "Wismos@proton.me" <Wismos@proton.me>, "freebsd-pkgbase@freebsd.org" <freebsd-pkgbase@freebsd.org>, "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: installing world from src on a pkgbase system Message-ID: <awueixzgpvhyinsytdjx@hgxq> In-Reply-To: <UGVbTfxFnLh7zkFaMJrCf_Fll6DjeBxw5VK_kc_jdLlOlJPe6QtfNOQm23v-DOSO-DP1YiEcP8APpn9To22Lc64V-oX24Mor7jSE_ZtYmj8=@proton.me>
index | next in thread | previous in thread | raw e-mail
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
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?awueixzgpvhyinsytdjx>
