Upgrade to FreeBSD 12.0

This short article illustrates the upgrade from FreeBSD 11.2 to FreeBSD 12.0.

Please take a full backup or create a snapshot before upgrading.

The whole upgrade process took about 30 minutes. This first 20 minute where take for download. During this time all application where availble to the user.

root@wnk20160809:~ # uname -a
FreeBSD wnk20160809 11.2-RELEASE-p7 FreeBSD 11.2-RELEASE-p7 #0: Tue Dec 18 08
root@wnk20160809:~ # freebsd-update fetch
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching metadata signature for 11.2-RELEASE from update4.freebsd.org... done
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.
--More--(END)...skipping...

No updates needed to update system to 11.2-RELEASE-p7.
root@wnk20160809:~ # date
Sun Jan  6 18:02:36 UTC 2019                            
root@wnk20160809:~ # freebsd-update upgrade -r 12.0-RELEASE
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching metadata signature for 11.2-RELEASE from update2.freebsd.org... done.                                                     
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Inspecting system... done.

The following components of FreeBSD seem to be installed:
kernel/generic world/base world/lib32

The following components of FreeBSD do not seem to be installed:
kernel/generic-dbg world/base-dbg world/doc world/lib32-dbg

Does this look reasonable (y/n)? y

Fetching metadata signature for 12.0-RELEASE from update2.freebsd.org... done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files... done.
Inspecting system... done.
Fetching files from 11.2-RELEASE for merging... done.
Preparing to download files... 
Preparing to download files... done.
Fetching 8786 patches.....10....20....30.....
Attempting to automatically merge changes in files... done.

The following changes, which occurred between FreeBSD 11.2-RELEASE and
FreeBSD 12.0-RELEASE have been merged into /etc/crontab:
--- current version
+++ new version
@@ -1,16 +1,14 @@
 # /etc/crontab - root's crontab for FreeBSD
 #
-# $FreeBSD: releng/11.2/etc/crontab 194170 2009-06-14 06:37:19Z brian $
+# $FreeBSD: releng/12.0/usr.sbin/cron/cron/crontab 338497 2018-09-06 14:55:54Z brd $
 #
 SHELL=/bin/sh
-PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
+PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
 #
 #minute        hour    mday    month   wday    who     command
 #
-*/5    *       *       *       *       root    /usr/libexec/atrun
-#
 # Save some entropy so that /dev/random can re-seed on boot.
 */11   *       *       *       *       operator /usr/libexec/save-entropy
 #
 # Rotate log files every hour, if necessary.
 0      *       *       *       *       root    newsyslog
Does this look reasonable (y/n)? 




The following changes, which occurred between FreeBSD 11.2-RELEASE and
FreeBSD 12.0-RELEASE have been merged into /etc/group:
--- current version
+++ new version
@@ -1,6 +1,6 @@
-# $FreeBSD: releng/11.2/etc/group 294896 2016-01-27 06:28:56Z araujo $
+# $FreeBSD: releng/12.0/etc/group 336525 2018-07-19 23:55:29Z ian $
 #
 wheel:*:0:poly
 daemon:*:1:
 kmem:*:2:
 sys:*:3:
@@ -27,10 +27,11 @@
 uucp:*:66:
 dialer:*:68:
 network:*:69:
 audit:*:77:
 www:*:80:
+ntpd:*:123:
 _ypldap:*:160:
 hast:*:845:
 nogroup:*:65533:
 nobody:*:65534:
 pgsql:*:70:
Does this look reasonable (y/n)? y


The following changes, which occurred between FreeBSD 11.2-RELEASE and
FreeBSD 12.0-RELEASE have been merged into /etc/master.passwd:
--- current version
+++ new version
@@ -1,6 +1,6 @@
-# $FreeBSD: releng/11.2/etc/master.passwd 299365 2016-05-10 12:47:36Z bcr $
+# $FreeBSD: releng/12.0/etc/master.passwd 337882 2018-08-15 23:18:34Z brd $
 #
 root:$1$MIDEJJNN$FgRxFmrd0COuJoW/KnioS.:0:0::0:0:Charlie &:/root:/bin/sh
 toor:*:0:0::0:0:Bourne-again Superuser:/root:
 daemon:*:1:1::0:0:Owner of many system processes:/root:/usr/sbin/nologin
 operator:*:2:5::0:0:System &:/:/usr/sbin/nologin
@@ -20,10 +20,11 @@
 _dhcp:*:65:65::0:0:dhcp programs:/var/empty:/usr/sbin/nologin
 uucp:*:66:66::0:0:UUCP pseudo-user:/var/spool/uucppublic:/usr/local/libexec/uucp/uucico
 pop:*:68:6::0:0:Post Office Owner:/nonexistent:/usr/sbin/nologin
 auditdistd:*:78:77::0:0:Auditdistd unprivileged user:/var/empty:/usr/sbin/nologin
 www:*:80:80::0:0:World Wide Web Owner:/nonexistent:/usr/sbin/nologin
+ntpd:*:123:123::0:0:NTP Daemon:/var/db/ntp:/usr/sbin/nologin
 _ypldap:*:160:160::0:0:YP LDAP unprivileged user:/var/empty:/usr/sbin/nologin
 hast:*:845:845::0:0:HAST unprivileged user:/var/empty:/usr/sbin/nologin
 nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/usr/sbin/nologin
 pgsql:*:70:70::0:0:PostgreSQL pseudo-user:/usr/local/pgsql:/bin/sh
 cyrus:*:60:60::0:0:the cyrus mail server:/nonexistent:/usr/sbin/nologin
Does this look reasonable (y/n)? y


The following changes, which occurred between FreeBSD 11.2-RELEASE and
FreeBSD 12.0-RELEASE have been merged into /etc/passwd:
--- current version
+++ new version
@@ -1,6 +1,6 @@
-# $FreeBSD: releng/11.2/etc/master.passwd 299365 2016-05-10 12:47:36Z bcr $
+# $FreeBSD: releng/12.0/etc/master.passwd 337882 2018-08-15 23:18:34Z brd $
 #
 root:*:0:0:Charlie &:/root:/bin/sh
 toor:*:0:0:Bourne-again Superuser:/root:
 daemon:*:1:1:Owner of many system processes:/root:/usr/sbin/nologin
 operator:*:2:5:System &:/:/usr/sbin/nologin
@@ -20,10 +20,11 @@
 _dhcp:*:65:65:dhcp programs:/var/empty:/usr/sbin/nologin
 uucp:*:66:66:UUCP pseudo-user:/var/spool/uucppublic:/usr/local/libexec/uucp/uucico
 pop:*:68:6:Post Office Owner:/nonexistent:/usr/sbin/nologin
 auditdistd:*:78:77:Auditdistd unprivileged user:/var/empty:/usr/sbin/nologin
 www:*:80:80:World Wide Web Owner:/nonexistent:/usr/sbin/nologin
+ntpd:*:123:123:NTP Daemon:/var/db/ntp:/usr/sbin/nologin
 _ypldap:*:160:160:YP LDAP unprivileged user:/var/empty:/usr/sbin/nologin
 hast:*:845:845:HAST unprivileged user:/var/empty:/usr/sbin/nologin
 nobody:*:65534:65534:Unprivileged user:/nonexistent:/usr/sbin/nologin
 pgsql:*:70:70:PostgreSQL pseudo-user:/usr/local/pgsql:/bin/sh
 cyrus:*:60:60:the cyrus mail server:/nonexistent:/usr/sbin/nologin
Does this look reasonable (y/n)?   y



The following changes, which occurred between FreeBSD 11.2-RELEASE and
FreeBSD 12.0-RELEASE have been merged into /etc/ssh/sshd_config:
--- current version
+++ new version
@@ -1,7 +1,7 @@
-#      $OpenBSD: sshd_config,v 1.101 2017/03/14 07:19:07 djm Exp $
-#      $FreeBSD: releng/11.2/crypto/openssh/sshd_config 323136 2017-09-02 23:39:51Z des $
+#      $OpenBSD: sshd_config,v 1.103 2018/04/09 20:41:22 tj Exp $
+#      $FreeBSD: releng/12.0/crypto/openssh/sshd_config 338561 2018-09-10 16:20:12Z des $
 
 # This is the sshd server system-wide configuration file.  See
 # sshd_config(5) for more information.
 
 # This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
@@ -18,11 +18,10 @@
 #AddressFamily any
 #ListenAddress 0.0.0.0
 #ListenAddress ::
 
 #HostKey /etc/ssh/ssh_host_rsa_key
-#HostKey /etc/ssh/ssh_host_dsa_key
 #HostKey /etc/ssh/ssh_host_ecdsa_key
 #HostKey /etc/ssh/ssh_host_ed25519_key
 
 # Ciphers and keying
 #RekeyLimit default none
@@ -104,11 +103,11 @@
 #PidFile /var/run/sshd.pid
 #MaxStartups 10:30:100
 #PermitTunnel no
 #ChrootDirectory none
 #UseBlacklist no
-#VersionAddendum FreeBSD-20170903
+#VersionAddendum FreeBSD-20180909
 
 # no default banner path
 #Banner none
 
 # override default of no subsystems
Does this look reasonable (y/n)? y




The following files are affected by updates, but no changes have
been downloaded because the files have been modified locally:
/var/db/locate.database
/var/log/sendmail.st



The following files will be removed as part of updating to 12.0-RELEASE-p1:
/bin/rcp
/boot/kernel/bhnd_chipc.ko
/boot/kernel/geom_part_pc98.ko
/boot/kernel/i915.ko
/boot/kernel/if_bwn_pci.ko
/boot/kernel/if_en.ko
/boot/kernel/if_fatm.ko
/boot/kernel/if_hatm.ko
/boot/kernel/if_ixgb.ko
/boot/kernel/if_lmc.ko
/boot/kernel/if_nxge.ko
/boot/kernel/if_patm.ko
/boot/kernel/if_rtwn.ko
/boot/kernel/if_urtwn.ko
/boot/kernel/jedec_ts.ko
/boot/kernel/libmbpool.ko
/boot/kernel/mcd.ko
/boot/kernel/ng_atm.ko
/boot/kernel/radeon.ko
/boot/kernel/random_yarrow.ko
/boot/kernel/rtwn-rtl8192cfwU_B.ko
/boot/kernel/scd.ko
/boot/kernel/si.ko
/boot/kernel/siba_bwn.ko
/boot/kernel/t3_tom.ko
/boot/kernel/urtwn-rtl8188eufw.ko
/boot/kernel/urtwn-rtl8192cfwT.ko
/boot/kernel/urtwn-rtl8192cfwU.ko
/boot/kernel/utopia.ko
/boot/kernel/vxge.ko
/boot/loader.help
/etc/apmd.conf
/etc/casper
/etc/casper/system.dns
/etc/casper/system.grp
/etc/casper/system.pwd
/etc/casper/system.random
/etc/casper/system.sysctl
/etc/devd/usb.conf
/etc/pam.d/rsh
/etc/periodic/weekly/330.catman
/etc/rc.d/apmd
/etc/rc.d/atm1
/etc/rc.d/atm2
/etc/rc.d/atm3
/etc/skel
/lib/casper/libcap_dns.so.0
/lib/casper/libcap_grp.so.0
/lib/casper/libcap_pwd.so.0


To install the downloaded upgrades, run "/usr/sbin/freebsd-update install".


/usr/sbin/freebsd-update install
Installing updates...
Kernel updates have been installed.  Please reboot and run
"/usr/sbin/freebsd-update install" again to finish installing updates.


shutdown -r now



/usr/sbin/freebsd-update install
Installing updates...


/usr/sbin/freebsd-update install
Installing updates...rmdir: ///var/db/etcupdate/current/usr/share/openssl/man/en.ISO8859-1: Directory not empty
rmdir: ///var/db/etcupdate/current/usr/share/openssl/man: Directory not empty
rmdir: ///var/db/etcupdate/current/usr/share/openssl: Directory not empty
rmdir: ///var/db/etcupdate/current/usr/share/man/en.UTF-8: Directory not empty
rmdir: ///var/db/etcupdate/current/usr/share/man/en.ISO8859-1: Directory not empty
rmdir: ///var/db/etcupdate/current/usr/share/man: Directory not empty
 done.

Published: Jan. 9, 2019

Change Content

The information on this page is user generated content. The content does not claim to be complete or correct.

Everybody is invited to add or change the data. Just click on this link. No login or email is required. Thanks.