Date: Wed, 25 Mar 2026 21:40:21 +0000 From: polyduekes@proton.me To: Lexi Winter <ivy@freebsd.org> Cc: freebsd-pkgbase@freebsd.org, freebsd-questions@freebsd.org Subject: Re: installing world from src on a pkgbase system Message-ID: <m-cS1PTzow3fGVjDOpYyn6W_o4S1wWeW_rAts1LiWRgqkb4CXug6y8weHusL07G9vt2l5WGX76OF2C-JckHufUvwSqJ4511_3wNZ81QeOz4=@proton.me> In-Reply-To: <acRQcjyIZ_Krfyw4@amaryllis.le-fay.org> References: <UGVbTfxFnLh7zkFaMJrCf_Fll6DjeBxw5VK_kc_jdLlOlJPe6QtfNOQm23v-DOSO-DP1YiEcP8APpn9To22Lc64V-oX24Mor7jSE_ZtYmj8=@proton.me> <acRQcjyIZ_Krfyw4@amaryllis.le-fay.org>
index | next in thread | previous in thread | raw e-mail
hi there, thanks for the response
is needing to do both buildworld and buildkernel to create a pkg repo the intended behaviour or is that planned to change
additionally may i ask why it's recommended to do 'make upodate-packages' over 'make packages'
Thank You
-------- Original Message --------
On Thursday, 03/26/26 at 02:45 Lexi Winter <ivy@freebsd.org> wrote:
Wismos@proton.me wrote in <UGVbTfxFnLh7zkFaMJrCf_Fll6DjeBxw5VK_kc_jdLlOlJPe6QtfNOQm23v-DOSO-DP1YiEcP8APpn9To22Lc64V-oX24Mor7jSE_ZtYmj8=@proton.me>:
> 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:
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.
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m-cS1PTzow3fGVjDOpYyn6W_o4S1wWeW_rAts1LiWRgqkb4CXug6y8weHusL07G9vt2l5WGX76OF2C-JckHufUvwSqJ4511_3wNZ81QeOz4=>
