#author("2021-05-18T18:50:57+09:00","default:kuji","kuji") CONTENTS #contents ---- Lastmodified &lastmod; ---- https://qiita.com/psaxuww/items/4f14414999fc1b31ca11 *FreeBSD 11.4 to 12.2 [#ib2c4c82] **freebsd-update -r 12.2-RELEASE upgrade [#vfa053ab] # freebsd-update -r 12.2-RELEASE upgrade Looking up update.FreeBSD.org mirrors... 2 mirrors found. Fetching metadata signature for 11.4-RELEASE from update2.freebsd.org... done. Fetching metadata index... done. Fetching 2 metadata patches.. done. Applying metadata patches... done. Fetching 1 metadata files... 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 [#occ1ad4a] Fetching metadata signature for 12.2-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.4-RELEASE for merging... done. Preparing to download files... done. Fetching 9250 patches.....10....20 Applying patches... done. Fetching 10227 files... The following file could not be merged automatically: /etc/ssh/moduli Press Enter to edit this file in vi and resolve the conflicts manually... /var/db/etcupdate/current/root/.login /var/db/etcupdate/current/root/.profile /var/db/etcupdate/log /var/db/mergemaster.mtree /var/empty /var/yp/Makefile.dist To install the downloaded upgrades, run "/usr/sbin/freebsd-update install". ** /usr/sbin/freebsd-update install [#ud6be612] Installing updates... Kernel updates have been installed. Please reboot and run "/usr/sbin/freebsd-update install" again to finish installing updates. ** reboot [#a2446db6] ** /usr/sbin/freebsd-update install [#s61d79cc] Installing updates... Completing this upgrade requires removing old shared object files. Please rebuild all installed 3rd party software (e.g., programs installed from the ports tree) and then run "/usr/sbin/freebsd-update install" again to finish installing updates. ** portupgrade -arf --batch [#p00e5468] # portupgrade -arf --batch ** pkg-static install -f pkg [#xb525379] pkg-static: Warning: Major OS version upgrade detected. Running "pkg-static install -f pkg" recommended Updating FreeBSD repository catalogue... Repository FreeBSD has a wrong packagesite, need to re-create database Fetching meta.txz: 100% 944 B 0.9kB/s 00:01 Fetching packagesite.txz: 100% 6 MiB 288.9kB/s 00:20 Processing entries: 100% FreeBSD repository update completed. 25385 packages processed. Updating database digests format: 100% The following 1 package(s) will be affected (of 0 checked): Installed packages to be DOWNGRADED: pkg: 1.9.2 -> 1.8.8 Number of packages to be downgraded: 1 The process will require 2 MiB more space. 2 MiB to be downloaded. Proceed with this action? [y/N]: ** y [#u603e75d] ** portupgrade -arf --batch or pkg upgrade [#wfe41bd2] ** /usr/sbin/freebsd-update install [#o22baaff] * FreeBSD 10 から Bind の同梱がなくなった [#v5bcc91b] ので、namedbの位置が変わっているので注意!! FreeBSD 9 以前 /etc/namedb FreeBSD 10 以後 /usr/local/etc/namedb # /usr/sbin/freebsd-update install Installing updates...rmdir: ///var/named/var/dump: Directory not empty rmdir: ///var/named/var: Directory not empty rmdir: ///var/named/etc/namedb: Directory not empty rmdir: ///var/named/etc: Directory not empty rmdir: ///var/named: Directory not empty ---- Total access &counter(total);:本日 &counter(today);:昨日 &counter(yesterday); #counter([total|today|yesterday]);