For reviews on pkgbase
Details
Fri, May 8
Thu, May 7
LGTM!
fix comment typos, thanks @cperciva!
implement cperciva/lwhsu sha256 suggestion, thanks guys!
Wed, May 6
ok, what if we separate the pkg update, and take the state after updating, but before upgrading, then we will actually know if the upgrade did anything. maybe because of this we can simplify the logic at the end a bit more.
Mon, May 4
Fri, May 1
greatly simplify based on cperciva feedback.
Thu, Apr 30
I'm inclined to skip the "figure out if we need to reboot or just restart services" complexity at this point because
incorperate suggestions by @bapt. Do not reboot unless kernel is updated. In all other situations, including situations where only the pkg database is updated, just restart all services.
Wed, Apr 22
@lwhsu out of interest, how do you end up with a system that has FreeBSD-base packages installed but doesn't have pkg bootstrapped?
use logic inspired from @lwhsu to prevent reboot if nothing happened. compare the file size in bytes of the pkg database instead of using pkg inf and checksum to save water/coal. tested on my laptop
implement bootstrap pkg if it is not done so already, based on lwhsu feedback, thanks! note, i like a blank line at the end of scripts for cat reasons. if we don't want this, i can remove it, but it doesn't hurt anything and we do it all over the place.
btw, you can try to run it with rclint, but I don't usually follow "Do not quote values unless necessary" error.
Hi, I am also working on this and didn't know this is earlier than me. I think this one is more complete while mine is only focusing on FreeBSD-base repo. However I guess there are still something useful (or not, as I'm still testing):
- bootstrap/update pkg
- only reboot when there is pkg updated
Apr 14 2026
Mar 28 2026
Mar 25 2026
Dec 2 2025
Superseded by 8e0b1a1c03a35a5db13e370cb3e62585d3db68e3
Nov 22 2025
Nov 19 2025
I'll bring this into the doc tree. I'll do a few minor textual fixes before committing, but nothing substantial.
Thanks for the update, it's definitely helpful to have accurate information for users on how to work with pkgbase to upgrade when 15.0 RELEASE hits.
Thanks! I'm (blindly) accepting without checking.
Nov 18 2025
@grahamperrin thank you for your suggestions.
I tried to integrate them to the best of my knowledge.
Nov 7 2025
My current thought is much the same as Sergio's in August:
Nov 4 2025
I'll pause for now, because I find it difficult to visualise with Phabricator. Clicking Undo does not undo (so, you may see repetition), and so on.
Can you tell when pkgbase.freebsd.org will be introduced?
A while ago, probably around August, I began referring to freebsd-update as legacy, because it was commonly understood that it would be "removed or at least neutered" with 15.0-RELEASE.
