freebsd-update upgrade

H!

I am thinking to upgrade FreeBSD 10.3-RELEASE to version 11 and as all the time I will use freebsd-update. I am using Synth. My question is it is correct that after second freebsd-update install I should rebuild all ports with Synth, install them and than reboot and run freebsd-update install again?

Thank you.

The freebsd-update(8) utility supports binary upgrades of amd64 and i386
systems running earlier FreeBSD releases. Systems running earlier
FreeBSD releases can upgrade as follows:

# freebsd-update upgrade -r 11.0-RC2

During this process, freebsd-update(8) may ask the user to help by
merging some configuration files or by confirming that the automatically
performed merging was done correctly.

# freebsd-update install

The system must be rebooted with the newly installed kernel before
continuing.

# shutdown -r now

After rebooting, freebsd-update needs to be run again to install the new
userland components:

# freebsd-update install

It is recommended to rebuild and install all applications if possible,
especially if upgrading from an earlier FreeBSD release, for example,
FreeBSD 9.x. Alternatively, the user can install misc/compat9x and
other compatibility libraries, afterwards the system must be rebooted
into the new userland:

# shutdown -r now

Finally, after rebooting, freebsd-update needs to be run again to remove
stale files:

# freebsd-update install
 
I updated yesterday from 10.3-p7 to 11-RC2.
After the last freebsd-update install, I'm reinstalling all my ports, because I have problems with Xorg.
 
H!

I am thinking to upgrade FreeBSD 10.3-RELEASE to version 11 and as all the time I will use freebsd-update. I am using Synth. My question is it is correct that after second freebsd-update install I should rebuild all ports with Synth, install them and than reboot and run freebsd-update install again?

that's essentially what I did except that I just used the prebuilt binaries from FreeBSD.
However, if you want to use synth to build everything from scratch, you'll should be able to still use the existing synth to build the packages, then remove everything with pkg delete -af and reinstall with pkg ins -r Synth `cat my-port-list`. That should work.
 
The way I did it was with a source upgrade to 11. I did every part of the process except for the final make delete-old-libs so this still allowed most of the installed packages to continue to work because the shared libs from 10 were still there. I believe that using freebsd-update that this step happens when you run it for the 3rd time during a major version update? After I had succesfully updated to 11 I then ran the following commands:

Code:
rm /var/synth/live_packages/All/* /var/synth/live_packages/Latest/*
pkg-static delete pkg synth
pkg-static install -r FreeBSD -f pkg synth
synth prepare-system
pkg upgrade -r Synth -f
shutdown -r now
cd /usr/src && make delete-old-libs

This might be overkill. I guess synth would probably have rebuilt everything automatically anyway as the release had changed but I figured that would make sure! It seemed to work fine anyway.
 
that's essentially what I did except that I just used the prebuilt binaries from FreeBSD.
However, if you want to use synth to build everything from scratch, you'll should be able to still use the existing synth to build the packages, then remove everything with pkg delete -af and reinstall with pkg ins -r Synth `cat my-port-list`. That should work.
I did...
I started yesterday and today was done, 1440 ports and on the end I got:
Code:
raised ADA.IO_EXCEPTIONS.NAME_ERROR:
unknown directory "All"

I don't know what happened because during Synth run I did check logs and directory All and packages were there.
Any idea, please?
Thank you.

P.S.

I did run again synth status and I got 14440 port to build and all are "N"
 
"Unknown directory All", that suggests that All directory of a package repository is not filtered out as it should be.
 
I did rebuild Synth with make and than synth status and Synth rebuild pkg and it shows me as I wrote in the previous post 1440 N ports for rebuild.
And I have directory /var/synth/live_packages/All and also/Latest. And now is there build pkg package.
I will run again synth upgrade-system and I hope will be okay. Thank you.
 
your description doesn't make too much sense.
If 1440 ports were really built, it wouldn't try to build them again.

maybe you're having some sort of filesystem problem. The "All" directory is automatically created if needed so it should never be missing.
 
It was my mistake: I thought that I have the past pkg and after manually update it works without problems and like changes in Synth. Thank you, Marino.
 
Back
Top