Minor/Major upgrade method

I red about it, and it seems there are a lots of commands, to write in order to do a minor/major upgrade..I just downloaded and installed freeBSD 15.1 so will anybody be so kind, and write me a procedure (two separated snippets).. one for minor, and one for major upgrade. P.S. i am using nvidia card.. i had legit snippet of it but i lost it somehow..please no generic answers and guessing reply s. So i want an answer from people who already did an minor/major upgrade and using nvidia card..All the best To BSD team!!
 
Or could someone confirm that these are correct.. for minor upgrade:
# bring current 15.1 fully up to date first
sudo freebsd-update fetch
sudo freebsd-update install

# upgrade base system to 15.2
sudo freebsd-update -r 15.2-RELEASE upgrade
sudo freebsd-update install
sudo shutdown -r now

# after reboot: finish installing the new userland
sudo freebsd-update install

# update third-party packages
sudo pkg update -f
sudo pkg upgrade -y

# reasonable safeguard for your NVIDIA kernel module
sudo pkg install -f nvidia-driver

# run this if freebsd-update still has a final cleanup stage
sudo freebsd-update install

# final reboot
sudo shutdown -r now

For major upgrade:
# bring the current FreeBSD 15 system fully up to date
sudo freebsd-update fetch
sudo freebsd-update install
sudo pkg update
sudo pkg upgrade -y

# upgrade the base system to FreeBSD 16.0
sudo freebsd-update -r 16.0-RELEASE upgrade
sudo freebsd-update install
sudo shutdown -r now

# after reboot: finish installing the new userland
sudo freebsd-update install

# rebuild/reinstall all third-party packages for the new major ABI
sudo pkg update -f
sudo pkg upgrade -f -y

# reinstall the NVIDIA driver package
sudo pkg install -f nvidia-driver

# remove old compatibility libraries and obsolete base-system files
sudo freebsd-update install

# final reboot
sudo shutdown -r now
 
Ahh i see, this is not valid what i wrote..instructions can change till 15.2 or major version 16 comes out...so it is to early for me to ask that..i am reading now instructions page you gave me
 
Well, wait until 15.2-RELEASE and read the release notes. Explanations are clear these last times.

Only one thing to do before: disable all loading of third-party kernel modules (especially video drivers), as well as the launch of xorg or equivalent. That will save most headaches.
 
Thanks man..this reply is just what i needed:D I finally settled down with FreeBSD, and i want to keep it that way..so yes ill wait and thanks for the tips!!
 
drhowarddrfine points you to the link for upgrading the system.

The Nvidia card will depend upon a few things. Assuming you have packages set to latest, or even if you don't. Firstly, if you have ZFS (I know you said no guessing, but you aren't giving us some needed info, so we have to), before upgrade, use bectrl to make a backup boot environment. Then if it goes wrong, you can boot into the environment that worked. See my https://srobb.net/fbsdbe.html which tells you how to do that.
Now, with the Nvidia, it will depend upon your card. Check if your card is supported at https://us.download.nvidia.com/XFree86/FreeBSD-x86_64/595.58.03/README/supportedchips.html. Note that there are cards marked as Current, and further down the page cards marked as legacy. (Just search for the word legacy on the page). Then you can upgrade it with pkg, but depending on how current the packages are, it might not work. If it doesn't work, I upgrade ports with gitup so that I have the most recent ports, then I use portmaster to install nvidia-drm-kmod and nvidia-drm-66-kmod (in my case, I have an older card, so I actually install the nvidia-drm-66-kmod-580 and nvidia-drm-kmod-580.) In my experience, though I don't guarantee it for anyone else, this (the installing from ports) has always fixed it if was having problems. I should probably put up a page on it, as I've written this explanation so often. Installing these ports will also update any nvidia-driver that needs to be updating.

So, the list of commands is at the link drhowarddrfine provided. Any Nvdiai drivers are separate, and hopefully, only need pkg update and pkg upgrade to work. If not, my experience has been that it can be fixed using the ports as described above.
 
it says it is supported (current), i have RTX 2060. That list of commands could change till 15.2 is out? ill will check them for sure when the time comes to upgrade. Ok many thanks to your reply..for me the hardest part was always upgrading stable Os es xd. but this is very helpfull too..i will check how to boot in working environment method..and yes i have zfs..sorry yes you are right i didnt gave you my setup..
 
Personally, I would suggest commenting out any kld_list line in your /etc/rc.conf whilst doing a freebsd-update / pkg upgrade because of problems in getting you video driver sorted out in the process. Once you have finished you can restore the line.

That is my experience anyway.
 
Back
Top