This short article illustrates the upgrade from FreeBSD 12.1 to FreeBSD 12.2.
Please take a full backup or create a snapshot before upgrading.
The whole upgrade process took about 30 minutes. This first 20 minutes where taken for download. During this time all applications where available to the users.
root@wnk:~ # uname -a FreeBSD wnk 12.1-RELEASE-p10 FreeBSD 12.1-RELEASE-p10 GENERIC amd64 root@wnk:~ # date; freebsd-update fetch; date; Sun Nov 1 09:58:01 UTC 2020 Looking up update.FreeBSD.org mirrors... 3 mirrors found. Fetching metadata signature for 12.1-RELEASE from update4.freebsd.org... done. Fetching metadata index... done. Inspecting system... done. Preparing to download files... done. No updates needed to update system to 12.1-RELEASE-p10. WARNING: FreeBSD 12.1-RELEASE-p10 is approaching its End-of-Life date. It is strongly recommended that you upgrade to a newer release within the next 2 months. Sun Nov 1 09:58:28 UTC 2020 root@wnk:~ # freebsd-update upgrade -r 12.2-RELEASE Looking up update.FreeBSD.org mirrors... 3 mirrors found. Fetching metadata signature for 12.1-RELEASE from update1.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/doc world/lib32 The following components of FreeBSD do not seem to be installed: kernel/generic-dbg world/base-dbg world/lib32-dbg Does this look reasonable (y/n)? y Fetching metadata signature for 12.2-RELEASE from update1.freebsd.org... done. Fetching metadata index... done. Fetching 1 metadata patches. done. Applying metadata patches... done. Fetching 1 metadata files... done. Inspecting system... Fetching files from 12.1-RELEASE for merging... done. Preparing to download files... done. Fetching 9567 patches.....10....20....30.......410....420....430 done. Attempting to automatically merge changes in files... done. The following changes, which occurred between FreeBSD 12.1-RELEASE and FreeBSD 12.2-RELEASE have been merged into /etc/group: --- current version +++ new version @@ -1,6 +1,6 @@ -# $FreeBSD: releng/12.1/etc/group 336525 2018-07-19 23:55:29Z ian $ +# $FreeBSD: releng/12.2/etc/group 359447 2020-03-30 17:07:05Z brooks $ # wheel:*:0:poly daemon:*:1: kmem:*:2: sys:*:3: @@ -30,10 +30,11 @@ audit:*:77: www:*:80: ntpd:*:123: _ypldap:*:160: hast:*:845: +tests:*:977: nogroup:*:65533: nobody:*:65534: pgsql:*:70: cyrus:*:60: redis:*:535: Does this look reasonable (y/n)? y The following changes, which occurred between FreeBSD 12.1-RELEASE and FreeBSD 12.2-RELEASE have been merged into /etc/master.passwd: --- current version +++ new version @@ -1,6 +1,6 @@ -# $FreeBSD: releng/12.1/etc/master.passwd 337882 2018-08-15 23:18:34Z brd $ +# $FreeBSD: releng/12.2/etc/master.passwd 359447 2020-03-30 17:07:05Z brooks $ # 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 @@ -23,10 +23,11 @@ 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 +tests:*:977:977::0:0:Unprivileged user for tests:/nonexistent:/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 redis:*:535:535::0:0:Redis Daemon:/nonexistent:/usr/sbin/nologin git_daemon:*:964:964::0:0:git daemon:/nonexistent:/usr/sbin/nologin Does this look reasonable (y/n)? ^ The following changes, which occurred between FreeBSD 12.1-RELEASE and FreeBSD 12.2-RELEASE have been merged into /etc/ssh/sshd_config: --- current version +++ new version @@ -1,7 +1,7 @@ # $OpenBSD: sshd_config,v 1.103 2018/04/09 20:41:22 tj Exp $ -# $FreeBSD: releng/12.1/crypto/openssh/sshd_config 338561 2018-09-10 16:20:12Z des $ +# $FreeBSD: releng/12.2/crypto/openssh/sshd_config 360313 2020-04-25 15:38:48Z emaste $ # 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 @@ -103,11 +103,11 @@ #PidFile /var/run/sshd.pid #MaxStartups 10:30:100 #PermitTunnel no #ChrootDirectory none #UseBlacklist no -#VersionAddendum FreeBSD-20180909 +#VersionAddendum FreeBSD-20200214 # no default banner path #Banner none # override default of no subsystems Does this look reasonable (y/n)? The following files will be removed as part of updating to 12.2-RELEASE-p0: /boot/kernel/ipsec.ko /etc/rc.d/abi /usr/include/c++/v1/experimental/any /usr/include/c++/v1/experimental/chrono /usr/include/c++/v1/experimental/numeric /usr/include/c++/v1/experimental/optional /usr/include/c++/v1/experimental/ratio /usr/include/c++/v1/experimental/string_view /usr/include/c++/v1/experimental/system_error /usr/include/c++/v1/experimental/tuple /usr/include/net/if_tapvar.h /usr/include/netinet/sctp_dtrace_declare.h /usr/include/netinet/sctp_dtrace_define.h /usr/include/ssp /usr/include/ssp/ssp.h /usr/include/ssp/stdio.h /usr/include/ssp/string.h The following files will be added as part of updating to 12.2-RELEASE-p0: /boot/gptboot.efi /boot/gptboot.efifat /boot/kernel/cp2112.ko /boot/kernel/gpioths.ko /boot/kernel/ice_ddp.ko /boot/kernel/if_ice.ko /boot/kernel/if_sume.ko /boot/kernel/if_tuntap.ko /boot/kernel/iicmux.ko /boot/kernel/iwm9000fw.ko /boot/kernel/iwm9260fw.ko /boot/kernel/ltc430x.ko /boot/kernel/safexcel.ko /boot/kernel/sctp.ko /boot/kernel/superio.ko /boot/kernel/xdr.ko /etc/os-release /etc/rc.d/linux .... 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. Sun Nov 1 10:40:40 UTC 2020 usr/sbin/freebsd-update install Installing updates... done. root@wnk:~ # uname -a FreeBSD wnk 12.2-RELEASE FreeBSD 12.2-RELEASE r366954 GENERIC amd64 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...find /var/db/freebsd-update/files -type f -mtime +60d -delete
Published: Nov. 1, 2020
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.