Maybe I'm being a bit simple but reading the #FreeBSD docs for upgrades using pkgbase and it says to create this file FreeBSD-base.conf which I understand. The part that is messing with my grey matter is where it says to chose one of the options below. I'm on FreeBSD 15.1-RELEASE and have my ports on Latest so which of these two do I chose ?

main - pkg+https://pkg.freebsd.org/${ABI}/base_latest

releng/15.1 pkg+https://pkg.freebsd.org/${ABI}/base_release_1

Or something else entirely ????

https://docs.freebsd.org/en/books/handbook/cutting-edge/#_upgrading_a_host_using_freebsd_base

HELP PLEASE before I pkgbasify my ThinkPad ❤️
Chapter 27. Updating and Upgrading FreeBSD

Information about how to keep a FreeBSD system up-to-date with freebsd-update or Git, how to rebuild and reinstall the entire base system, etc

FreeBSD Documentation Portal
Oh wait pkgbasify select the repo based on the output of freebsd-version. OK so what is the one labelled main for with the latest tag on the URL ??
@justine you would want base_release_1 for 15.1, base_latest is 15-STABLE. *BUT* you should not need to create any files to upgrade. what docs are you reading?
Chapter 27. Updating and Upgrading FreeBSD

Information about how to keep a FreeBSD system up-to-date with freebsd-update or Git, how to rebuild and reinstall the entire base system, etc

FreeBSD Documentation Portal
@justine so you're on 15.1-RELEASE now, are you trying to switch to 15-STABLE?
No I'll be staying on stable and will be using pkgbasify to convert. I'm just trying to get my head around for when say 15.2 comes out as to which of those URLs I'd use?

CC: @[email protected]

@justine if you want to run stable, you should use base_latest* and you don't need to ever change that, since base_latest will always be the latest stable branch. only the version number changes, so 15.0-STABLE, 15.1-STABLE, 15.2-STABLE... are all base_latest.

* or you can run base_weekly if you want updates once a week instead of twice a day; it's the same thing with a different build schedule.

for ports kmods you should use kmods_latest which is built for stable.

@justine oh, one other thing: the first time you switch from a release branch to a stable branch, you have to run 'pkg upgrade -f' to force it to ugprade every package, because of how the version numbering works. you only need to do that once then after that it'll work normally.

if you pkgbasify directly to stable (base_latest) that wouldn't be required.

@justine @lw you shouldn’t need to manually edit any files on a standard pkgbasify’d system.

You just run pkg with some extra args and that should update the files. See the instructions here: https://www.freebsd.org/releases/15.1R/installation/. I hope this gets cleaner later. But it works.

FreeBSD 15.1-RELEASE Upgrading Instructions

The FreeBSD Project
@justine @lw this confused me greatly btw when i pkgbasified my 15.0-RELEASE box and then did the upgrade to 15.1. I also expected to have to do some weird file editing like Debian. If you run pkgbasify though, you should just be able to follow the upgrade guide.
Thanks Ian, Fingers crossed everything goes smoothly when I convert hopefully this weekend on my ThinkPad first. I'll maybe hold off on my server Beastie and it's Bastille thin jails.

CC: @[email protected] @[email protected]
@justine @lw I can’t speak for Bastille but I’ve seen the question going around haha. I didn’t have any issues with my AppJail thin jails.

@justine I'm also a bit confused  . When I pkgbasified and updated my #Thinkpad X220 from 15.0-p10 to 15.1 I took the next steps:
1) Update packages with `pkg upgrade`
2) Update base system with `freebsd-update fetch` and `freebsd-update install`
3) Read this doc (`README.md`): https://github.com/FreeBSDFoundation/pkgbasify
4) Pkgbasified my completely fresh 15.0-p10 system with the steps from this doc.
5) Updated from 15.0-p10 to 15.1 using the instructions for pkgbasified system, provided by URL from @ianthetechie above

I didn't touch any repositiries' configuration files, since 15.0 living on my machine.

@lw

#FreeBSD #pkgbase

GitHub - FreeBSDFoundation/pkgbasify: Convert a FreeBSD system to use pkgbase

Convert a FreeBSD system to use pkgbase. Contribute to FreeBSDFoundation/pkgbasify development by creating an account on GitHub.

GitHub

@justine

I am the same position, I made the mistake to think it would be easier than the standard method.

Still unsure of what to do to update my computers...

@freezr @justine I probably can't respond here without Mastodon rewriting my response and adding confusion … I'll write something in BSD Cafe Billboard then update this post.

Postscript 1:

if you use pkgbasify, things should be smooth. Double-check the output of this command after restarting the OS:

pkg repos -el | sort -f ; sleep 5 ; pkg repos -e | grep -B 1 url