Moving to pkg-based in 15.1 ...

From: Mike <the.lists_at_mgm51.com>
Date: Sat, 20 Jun 2026 23:25:02 UTC
I have a couple of questions as I run a test environment ...

For starters, I downloaded and installed the memstick image of 15.1 
AMD64.  So that is what I am working with here.

OK, under the prior environment when I wanted to update from, say, p5 to 
p6 of the current installed version (e.g., 14.3 p5 to 14.3 p6), I had a 
script that ran ...

	/usr/sbin/freebsd-update fetch

then, after a yes/no prompt ...

	/usr/sbin/freebsd-update install

then, when that completed the script ran ...

	InstalledKernelVersion=$( /bin/freebsd-version -k )
	RunningKernelVersion=$( /bin/freebsd-version -r )
	InstalledUserLandVersion=$( /bin/freebsd-version -u )

	echo "Running kernel:     ${RunningKernelVersion}"
	echo "Installed kernel:   ${InstalledKernelVersion}"
	echo "Installed userland: ${InstalledUserLandVersion}"

and based upon that, I knew whether or not I needed to reboot.

It was fairly simple.  I just ran the script.  No config file changes 
needed.


Now, as I understand the pkgbase system, it has gotten a bit more complex.

I no longer see that easy ability to update from one patch level to the 
current patch level within the installed version.

As I read...

https://wiki.freebsd.org/PkgBase

I see examples of "Minor version upgrades."  But no examples of updating 
from one patch level to a subsequent patch level within a version.

Is there a FreeBSD wiki article I have missed?

thx.