Solved FreeBSD 15.1 Upgrade Question

I'm upgrading from 14.4 to 15.1 and currently on this step:
Code:
Completing this upgrade requires removing old shared object files.
Please upgrade or rebuild all installed 3rd party software (e.g.,
programs installed with pkg or from the ports tree) and then run
'freebsd-update [options] install' again to finish installing updates.

I have 2 different AI's saying two completely different things. I'm using synth to rebuild all my ports.

I'm assuming I need to do all of this before running freebsd-update install again?

Code:
su (change to root)
screen
rm -rf /var/synth/live_packages/All/*.pkg
sudo rm -f /var/db/gitup/ports /var/db/gitup/ports.history
gitup ports
synth just-build `cat /home/mayhem/build.list`
synth rebuild-repository
pkg delete -af
/usr/sbin/pkg bootstrap -f
pkg install `cat /home/mayhem/install.list`
 
I have 2 different AI's saying two completely different things.
Thus the cause of all your problems. I have as yet to get a correct answer from AI about anything.
Use the source, my friend. AI will screw you up every way imaginable.
Yes, when moving from one major version to another, all software needs to be reinstalled because the ABI changes.
I'm using synth to rebuild all my ports.
Why would you use a third party thing instead of FreeBSD's native for that?
EDIT: Re-reading I see you are using ports. I don't recall what is done for ports since I haven't used them in many years.
 
The biggest concern about ports and upgrading is "do you have any third party kmods lie drm stuff that gets loaded during reboot".
What I have done in the past is comment out the kld_list variable in /etc/rc.conf, do the freebsd-update steps, rebuild/install all the ports then reenable kld_list. First time I usually manually load any of the modules just to play it safe.

Applications are typically safe because of compatibility with the previous version in the kernel, but one needs to update as soon a possible.

If you are using ZFS you can manually create new BEs and do the upgrade into them.
 
Same for building packages with Poudriere, same process.

Upgrade the base OS first, this is a major version upgrade so run freebsd-update install twice (to update the kernel and userland). Then start your poudriere/synth bulk builds (make sure both are using the correct version jail, your new FreeBSD version). Let it build everything, then upgrade/reinstall your packages on the host. Once that's done you can run the third and final freebsd-update install. This will remove all the old libraries and other files from the previous version.
 
Back
Top