FreeBSD's pkgbase upgrade is a wall of commands, so this admin wrote a tool to replace it
New FreeBSD Pkgbase(8) Tool
FreeBSD 15.x is the last release where freebsd-update(8) works; from 16.0 on, pkgbase is the only way to update the base system. When the 15.2-BETA1 announcement offered a long, multi-step pkg procedure instead of a simple upgrade command, the author spent a couple of hours scripting pkgbase(8), a drop-in replacement that handles repository setup, UEFI/BIOS bootcode, .pkgnew files, and kernel modules. It's released under the BSD license on GitHub.
I mean … how hard can it be to script it and automate it? … and do not get me started on AI – what I did here is all by my own hands and fingers in a classic sysadmin way – character by character – line by line – command after command – exception by exception … and it took me like 2-3 hours most.
- kemotep
I only started using FreeBSD last year but it was crazy to upgrade to 15 from 14 and be told that pkgbase, while experimental would be a much more unified solution. Come the 15.1 upgrade and you have to run like 5 commands compared to just the old FreeBSD-base fetch command.
Still it’s great to see this work and the desktop-installer script streamline a lot of the experience. I like FreeBSD and have had an otherwise fantastic experience learning and using it.
- drewg123
This looks very nice! The one thing I think would be killer is if it could be integrated with boot environments, so you wind up with something like beinstall where a new BE is created and the update is done in the new BE.
- soupbowl
This tool looks great and a much better UX for upgrading.