#author("2021-05-22T05:19:34+09:00","default:kuji","kuji") CONTENTS #contents ---- Lastmodified &lastmod; ---- https://qiita.com/psaxuww/items/4f14414999fc1b31ca11 freebsd-update upgrade -r 12.2-RELEASE freebsd-update install reboot freebsd-update install pkg bootstrap -f portupgrade -af --batch freebsd-update install uname -a FreeBSD 12.0-RELEASE FreeBSD 12.0-RELEASE r341666 GENERIC amd64 root@piano2nd:~:21_05_22:5:15 # freebsd-update install src component not installed, skipped 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. https://www.facebook.com/groups/freebsd.labo.japan/permalink/2493192240752658/ 上記の作業だけだとntpdが動かないことがあるのでpwd_mkdbとchown実行すればntpdが動きます # pwd_mkdb /etc/master.passwd # chown ntpd:ntpd /var/db/ntp/{ntpd.drift,ntpd.pid} *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 -af --batch ** Shared object "libssl.so.8" not found [#b13737eb] https://forums.freebsd.org/threads/i-cant-upgrade-pkg-after-upgrading-11-2-to-12-0.68717/ ** 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 -af --batch or pkg upgrade [#wfe41bd2] ** Port deleted on 2020-09-19: www/mod_python35 Has expired: Uses deprecated version of python ** Port deleted on 2020-09-19: japanese/mailman Has expired: Uses deprecated version of python ** Port marked as IGNORE: security/p5-OpenCA-OpenSSL: is marked as broken: does not build with DEFAULT_VERSIONS+=ssl=openssl: incomplete definition of type 'struct x509_st' ** /usr/sbin/freebsd-update install [#o22baaff] * FreeBSDー12 システムのOpenSSL を使う様に変更 [#rc070985] /etc/make.conf の OpenSSL コメントアウト #DEFAULT_VERSIONS+=ssl=openssl Apache24 PHP73 再コンパイル # portupgrade -rfR --batch apache24-2.4.46_2 # portupgrade -rf 'php73*' # portupgrade -rf curl-7.76.1 --batch # portupgrade -f -m "DISABLE_VULNERABILITIES=yes" mysq80-server ---- Total access &counter(total);:本日 &counter(today);:昨日 &counter(yesterday); #counter([total|today|yesterday]);