Major upgrades with FreeBSD

Here a a small summary of all invoked FreeBSD commands if you want to upgrade from let's say 11.0 to 11.1. All this info can also be found in the FreeBSD handbook.

First update your current version to the latest packages and reboot:

# freebsd-update fetch install
# pkg upgrade (command for binary packages)
# portmaster -a (command for installed ports, WARNING: see below)
# reboot

Warning for portmaster: portmaster will recompile also your binary packages if the port version is newer!

Now let's start the upgrade process:

# freebsd-update -r 11.1-RELEASE upgrade (replace 11.1-RELEASE with the upgrade version you want)
# freebsd-update install
# reboot
# freebsd-update install
# pkg-static upgrade -f (command for binary packages)
# portmaster -af (command for ports. WARNING: see above)
# freebsd-update install
# reboot

That's it. upgraded version up and running.

 

Install SQL Server without reboot

When installing SQL Server 2012 one can run into “‘Reboot required check failed” situation. This is in many production environments a total no-go. Here is a simple workaround for that:

  • open the windows registry editor 
  • find HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager
  • rename temporarily PendingFileRenameOperations to PendingFileRenameOperations-BAK
  • install SQL Server
  • when install finished, rename it back.

There you go… SQL Server installed without a reboot.