with pkg how to update to 16 or 15.2?

Is there a way to update to 16 (even if head of git repo?) or there is no pkg way to do it...

or how to do with 15.2?


like should I build kernel and world and install on a new kernel name or something like that but pkg will not work there?
 
It depends what is your current version. If it's lower than 15.0-RELEASE, I would say, it's possible but far too complex. If you start from 15.0 or higher, it's perfectly possible with pkgbase.

You can use my tool: https://github.com/Emrion/pkgb-update

That said, sko is right, all of that is more or less experimental.
 
If you are running a released version, you can likely use pkgbasify from here: https://github.com/FreeBSDFoundation/pkgbasify

To gain experience, I suggest creating a freebsd VM, use zfs root, create a snapshot using bectl(8), then pkgbasify within it and compare with the snapshot to understand what changed. Then use the pkgbase related instructions from https://lists.freebsd.org/archives/freebsd-stable/2026-November/004397.html

If you wait for another week or two for the 15.2 release, you might have simpler instructions.

See how it goes. If you mess up, you can always throw away the VM and start from scratch again!

But beware: if you mess up, you are likely on your own!
 
It depends what is your current version. If it's lower than 15.0-RELEASE, I would say, it's possible but far too complex. If you start from 15.0 or higher, it's perfectly possible with pkgbase.

15.1-RELEASE-p7 FreeBSD 15.1-RELEASE-p7 releng/15.1-n283696-bb03631fe3b7 GENERIC amd64

If you have to ask that question you shouldn't update to neither CURRENT nor an unreleased version. *Especially* combined with experimental pkgbase.
dont worry, I can reinstall all if the wrongest result happens.
To gain experience, I suggest creating a freebsd VM, use zfs root, create a snapshot using bectl(8), then pkgbasify within it and compare with the snapshot to understand what changed. Then use the pkgbase related instructions from https://lists.freebsd.org/archives/freebsd-stable/2026-November/004397.html
ok, will look into that
 
15.1-RELEASE-p7
From a normal 15.1-RELEASE you don't need pkgbase at all for 15.2. Once it's out, freebsd-update -r 15.2-RELEASE upgrade does the job. Do bectl create before15.2 first and if something goes sideways you just pick the old boot environment in the loader.
 
Back
Top