upgrade with freebsd-update

Hi!

I didn't try upgrade from 15.0 to 15.1 with freebsd-update on ufs sytem but I am confused. I did read one email:


Code:
OK, but how can this update be done?

The old command (which the Handbook suggests) doesn't work:

   #  freebsd-update -r 15.1-RELEASE upgrade
   freebsd-update is incompatible with the use of packaged base.  Please
   see https://wiki.freebsd.org/PkgBase for more information.

and the PkgBase wiki is a bit unclear (it tries to reinstall existing
files when trying to follow these instructions).

I get lost with all these FreeBSD.*.conf files. Are they documented

What is going on? Did anyone got the same msg?

Thank you.
 
The chances are, if you're getting that message, that somewhere along the line you switched to pkgbase--maybe you forgot? You have to have some pkgbase something there to get that message.
 
The chances are, if you're getting that message, that somewhere along the line you switched to pkgbase--maybe you forgot? You have to have some pkgbase something there to get that message.
I didn't try yet and I will wait more... I just read an email from someone who sent to "announce" mailing list. You can read there.
 
https://lists.freebsd.org/archives/freebsd-announce/2026-June/000275.html is the one I think you mean. However, I had one VM that wasn't using pkg base and freebsd-update worked with it, though I had some problems, so wound up converting it to pkg base.

But the problems I had weren't what you describe. I am pretty sure that means you have pkgbase. There is a way to tell, mentioned in the upgrade instructions.

from https://www.freebsd.org/releases/15.1R/installation/
The procedure for binary upgrades depends on the method used to manage the operating system.To determine this, run the following command:

pkg which /usr/bin/uname

If /usr/bin/uname was not installed by a package is shown, see Upgrading with Distribution Sets below.

If a package name is shown, such as FreeBSD-runtime-15.0, see Upgrading with Base System Packages below.


I guess that isn't really clear. But you can run the pkg which /usr/bin/uname and see if it says something like installed by package FreeBSD-runtime-something. If it does say that, then you know you are using pkgbase.

Not sure what it says if you were using distribution sets. I just threw a vm install into bhvye and chose distribution sets rather than pkg base and when I did that pkg which /usr/bin/uname I got a response of /usr/bin/uname was not found in the database. So, try it and see.
 
I received the same mail. I was wondering if it was for me and if I have to answer.
Let's Colin answers, so.

For information, I'm currently writing a script to help for the upgrades with pkgbase.
It lacks some tests and some polishing.
 
https://lists.freebsd.org/archives/freebsd-announce/2026-June/000275.html is the one I think you mean. However, I had one VM that wasn't using pkg base and freebsd-update worked with it, though I had some problems, so wound up converting it to pkg base.

But the problems I had weren't what you describe. I am pretty sure that means you have pkgbase. There is a way to tell, mentioned in the upgrade instructions.

from https://www.freebsd.org/releases/15.1R/installation/



I guess that isn't really clear. But you can run the pkg which /usr/bin/uname and see if it says something like installed by package FreeBSD-runtime-something. If it does say that, then you know you are using pkgbase.

Not sure what it says if you were using distribution sets. I just threw a vm install into bhvye and chose distribution sets rather than pkg base and when I did that pkg which /usr/bin/uname I got a response of /usr/bin/uname was not found in the database. So, try it and see.
Code:
$ mdo pkg which /usr/bin/uname                                                     
/usr/bin/uname was not found in the database
 
Ok, that means, as far as I can tell, that somewhere along the way, you switched to pkgbase and forgot. Maybe you ran pkgbase.lua at some point. At any rate, going by *my* experience, which may be different, you should now have
/usr/local/etc/pkg/repos/FreeBSD.conf. Now, it should have at the top something like
Code:
FreeBSD-base: { enabled: yes }
If it doesn't have that, add it. It should be the very first line in the file.
If you also have /usr/local/etc/pkg/repos/FreeBSD-base.conf in my case, I had to rename or delete it. Keep us posted. :)
 
Ok, that means, as far as I can tell, that somewhere along the way, you switched to pkgbase and forgot. Maybe you ran pkgbase.lua at some point. At any rate, going by *my* experience, which may be different, you should now have
/usr/local/etc/pkg/repos/FreeBSD.conf. Now, it should have at the top something like
Code:
FreeBSD-base: { enabled: yes }
If it doesn't have that, add it. It should be the very first line in the file.
If you also have /usr/local/etc/pkg/repos/FreeBSD-base.conf in my case, I had to rename or delete it. Keep us posted. :)
I NEVER swithed to pkgbase and I never have it in /usr/local/etc/pkg/repos/FreeBSD.conf. On FreeBSD 15.0-RELEASE-p10 I have just:
Code:
FreeBSD-ports: {
  url: "pkg+https://pkg.FreeBSD.org/${ABI}/latest"
}
FreeBSD-ports-kmods: {
  url: "pkg+https://pkg.FreeBSD.org/${ABI}/kmods_latest_${VERSION_MINOR}"
}
 
In that case, it's very odd. Something is not working the way it's supposed to.
I'm sure there's a reason, but it's beyond my (limited) knowledge. Sorry to have wasted your time with bad
guesses.
If you do decide to switch to pkgbase, you probably want pkgbasify.lua

 
In that case, it's very odd. Something is not working the way it's supposed to.
I'm sure there's a reason, but it's beyond my (limited) knowledge. Sorry to have wasted your time with bad
guesses.
If you do decide to switch to pkgbase, you probably want pkgbasify.lua

I think we don't understand each other.
It is not my problem because I didn't try to upgrade but the person from email.
Thank you for trying to help me.
 
Back
Top