#author("2021-05-31T16:25:57+09:00","default:kuji","kuji")
#author("2021-06-01T15:13:01+09:00","default:kuji","kuji")
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*12.2 13.0 [#p7ab9c01]

 freebsd-update upgrade -r 13.0-RELEASE
 freebsd-update install
 reboot
 freebsd-update install
 
 root@blackcube2:~ # pkg info
 pkg: Warning: Major OS version upgrade detected.  Running "pkg bootstrap -f" recommended
 
 root@blackcube2:~ # pkg bootstrap -f
 The package management tool is not yet installed on your system.
 Do you want to fetch and install it now? [y/N]: y
 Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:13:amd64/quarterly, please wait...
 Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done
 Installing pkg-1.16.3...
 package pkg is already installed, forced install
 Extracting pkg-1.16.3: 100%
 root@blackcube2:~ # portupgrade pkg-1.16.3
 [Reading data from pkg(8) ... - 554 packages found - done]
 Fetching the ports index ... /usr/bin/env  fetch -am -o /usr/ports/INDEX-13.bz2 https://www.FreeBSD.org/ports/INDEX-13.bz2
 /usr/ports/INDEX-13.bz2                               2314 kB  735 kBps    03s
 done
 [Updating the portsdb <format:bdb_btree> in /usr/ports ... - 31268 port entries   
 found .........1000.........2000.........3000.........4000.........5000.........6000.........7000.........8000
 .........9000.........10000.........11000.........12000.........13000.........14000.........15000.........16000
 .........17000.........18000.........19000.........20000.........21000.........22000.........23000.........24000
 .........25000.........26000.........27000.........28000.........29000.........30000.........31000.. ..... done]
 
 # portupgrade -af --batch
 freebsd-update install



https://qiita.com/psaxuww/items/4f14414999fc1b31ca11
*11.4 13.0 [#za205d82]

sun1

 freebsd-update upgrade -r 13.0-RELEASE
 freebsd-update install
 reboot
 freebsd-update install
      pkg upgrade -y
  pkg bootstrap -f
  pkg-static install -f pkg
 portupgrade -af --batch
 freebsd-update install
 uname -a


nextcloud がエラーで起動せず。
 portinstall devel/pecl-APCu --batch
で起動。
 portinstall /usr/ports/graphics/pecl-imagick --batch
した。

 portupgrade -rfR apr-1.7.0.1.6.1_1 --batch


*11.4 12.2 [#xb8b66c4]
 freebsd-update upgrade -r 12.2-RELEASE
 freebsd-update install
 reboot
 freebsd-update install
   pkg upgrade -y
  pkg bootstrap -f
  pkg-static install -f pkg
 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 -p /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

* Encode.c: loadable library and perl binaries are mismatched [#m8779038]

https://www.basekernel.jp/cgi-bin/adiary/adiary.cgi/basekrnl/0720

 Encode.c: loadable library and perl binaries are mismatched (got handshake key 0xc000080, needed 0xc680080)


 # pkg info -r perl5
 perl5-5.28.3_1:
        p5-Canary-Stability-2013_1
        imake-1.0.8,1
        utf8proc-2.6.1
        aspell-0.60.8_1,1
        mysql80-server-8.0.25
        mysql80-client-8.0.25
        p5-Encode-3.09
        apache24-2.4.46_2
        p5-HTTP-Message-6.31
        p5-Type-Tiny-1.012003
        w3m-0.5.3.20210424
        p5-libwww-6.54
        p5-Net-DNS-1.31,1
        p5-CGI-4.52
        p5-DateTime-Locale-1.32
        p5-CryptX-0.072
        texinfo-6.7_5,1
        help2man-1.48.3
        p5-Net-HTTP-6.21
        ImageMagick6-6.9.11.6_3,1
        logcheck-1.3.23
        p5-Moo-2.005004
        spamassassin-3.4.5
        munin-master-2.0.67
        munin-node-2.0.67
        munin-common-2.0.67
        net-snmp-5.9_3,1
        p5-IO-Socket-SSL-2.070
        p5-Crypt-DES-2.07_2
        p5-Crypt-CBC-3.01
        p5-Crypt-PBKDF2-0.161520
        p5-strictures-2.000006,1
        p5-multidimensional-0.014
        p5-indirect-0.39
        p5-bareword-filehandles-0.007
        p5-B-Hooks-OP-Check-0.22
        p5-ExtUtils-Depends-0.8000
        p5-Type-Tiny-XS-0.022
        p5-Type-Tie-0.015
        p5-Hash-FieldHash-0.15
        p5-Ref-Util-XS-0.117
        p5-Digest-SHA3-1.04
        p5-DateTime-TimeZone-2.47,1
        p5-Specio-0.47
        p5-URI-5.07
        p5-Mail-AuthenticationResults-2.20210112
        p5-Role-Tiny-2.002004
        llvm10-10.0.1_5
        p5-HTTP-Cookies-6.10
        automake-1.16.3
        p5-MIME-Types-2.18
        p5-List-MoreUtils-0.430
        p5-File-Listing-6.14
        p5-DateTime-1.54
        p5-Params-Util-1.102
        p5-Date-Manip-6.83
        p5-Class-Singleton-1.6
        p5-Class-C3-0.35
        p5-Algorithm-C3-0.11
        p5-Package-Stash-0.39
        p5-Locale-libintl-1.32
        p5-List-MoreUtils-XS-0.430
        p5-File-ShareDir-1.118
        p5-Params-Validate-1.30
        p5-XML-LibXML-2.0206,1
        p5-HTML-Parser-3.75
        p5-Log-Log4perl-1.53
        p5-BerkeleyDB-0.64
        p5-DBD-Pg-3.14.2
        p5-Mail-Tools-2.21
        p5-Mozilla-CA-20200520
        p5-DateTime-HiRes-0.04
        rrdtool-1.7.2_4
        llvm80-8.0.1_4
        amavisd-new-2.12.0_1,1
        p5-Convert-TNEF-0.18_2
        p5-IO-Stringy-2.113
        p5-HTTP-Daemon-6.12
        p5-TimeDate-2.33,1
        p5-Clone-0.45
        p5-common-sense-3.75
        p5-Exporter-Tiny-1.002002
        p5-Archive-Zip-1.68
        p5-Convert-UUlib-1.70,1
        p5-Net-DNS-Resolver-Mock-1.20200215
        p5-DBI-1.643
        p5-Error-0.17029
        p5-Module-Build-0.4231
        p5-Time-Local-1.30
        p5-Net-SSLeay-1.88
        p5-FCGI-0.79
        p5-JSON-2.97.001
        p5-Mail-DKIM-0.58
        p5-HTTP-Date-6.05
        intltool-0.51.0_1
        p5-File-ShareDir-Install-0.13
        p5-Sub-Quote-2.006006
        p5-Unicode-EastAsianWidth-12.0
        p5-namespace-autoclean-0.29
        p5-Mail-SPF-2.9.0_5
        p5-Class-Method-Modifiers-2.13
        hunspell-1.7.0_2
        autoconf-2.69_3
        p5-Text-Unidecode-1.30
        p5-Locale-gettext-1.07
        p5-Class-Inspector-1.36
        p5-File-Copy-Recursive-0.45
        mime-construct-1.11_2
        p5-Proc-WaitStat-1.00_1
        p5-IPC-Signal-1.00_1
        p5-Unix-Syslog-1.1_1
        p5-Crypt-OpenSSL-RSA-0.31
        p5-Crypt-OpenSSL-Bignum-0.09
        p5-XML-Parser-2.44
        p5-Crypt-OpenSSL-Random-0.15
        p5-Package-Stash-XS-0.29
        p5-Net-LibIDN-0.12_5
        p5-Net-IDN-Encode-2.500
        p5-Encode-Detect-1.01_1
        p5-Socket6-0.29
        p5-IPC-ShareLite-0.17_1
        p5-Digest-SHA1-2.13_1
        p5-Sub-Identify-0.14
        p5-Variable-Magic-0.62
        p5-NetAddr-IP-4.079
        p5-XML-SAX-1.02
        p5-Net-IP-1.26_1
        p5-Devel-StackTrace-2.04
        p5-Net-CIDR-0.20
        p5-Params-ValidationCompiler-0.30_1
        p5-Test-Exception-0.43
        p5-Sub-Uplevel-0.2800
        p5-CGI-Fast-2.15
        p5-LWP-MediaTypes-6.04
        p5-Net-CIDR-Lite-0.21_1
        p5-File-NFSLock-1.29
        p5-Try-Tiny-0.30
        p5-HTML-Template-2.95_1
        p5-XML-SAX-Base-1.09
        p5-XML-NamespaceSupport-1.12
        p5-WWW-RobotRules-6.02_1
        p5-HTTP-Negotiate-6.01_1
        p5-IO-HTML-1.001_1
        p5-Encode-Locale-1.05
        p5-Authen-NTLM-1.09_1
        p5-Cache-Cache-1.08
        p5-Cache-2.11
        p5-IO-String-1.08_1
        p5-Heap-0.80_1
        p5-Net-SNMP-6.0.1_1
        p5-namespace-clean-0.27
        p5-B-Hooks-EndOfScope-0.24
        p5-Sub-Exporter-Progressive-0.001013
        p5-Sub-Exporter-0.987_1
        p5-Data-OptList-0.110
        p5-Sub-Install-0.928_1
        p5-Module-Implementation-0.09_1
        p5-MRO-Compat-0.13
        p5-Eval-Closure-0.14
        p5-Exception-Class-1.44
        p5-Class-Data-Inheritable-0.08_1
        p5-Dist-CheckConflicts-0.11_1
        p5-Module-Runtime-0.016
        p5-Net-DNS-Resolver-Programmable-0.009
        p5-HTML-Tagset-3.20_1
        p5-Digest-HMAC-1.03_1
        p5-Net-Server-2.009
        p5-IO-Socket-INET6-2.72_1
        p5-IO-Multiplex-1.16
        p5-MIME-Tools-5.509,2
        p5-Convert-BinHex-1.125
                
 # pkg info -r perl5


** /usr/local/lib/perl5/site_perl 配下を再構築 [#tc6642f6]

 # cd /var/db/ports
 # rm -rf *
 # pkg delete perl5-5.28
 # cd /usr/local/lib/perl5/site_perl
 # rm -rf *

のようにして、perl とその依存モジュールを一旦削除し(ports/pakkage 導入の場合)、
 再度新規インストールし直す

もしくは

** /usr/local/lib/perl5/site_perl 配下を再構築 [#be1235d6]

 # mv /var/db/ports /var/db/ports_
 # pkg delete perl5-5.26.3
 # mv /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/site_perl_

のようにして、perl とその依存モジュールを一旦待避し(ports/pakkage 導入の場合)、
 再度新規インストールし直す。




*** portupgrade -f --batch 'p5-*' [#i8a76056]



 portupgrade -f --batch
 
 imake-1.0.8,1 utf8proc-2.6.1 aspell-0.60.8_1,1 mysql80-server-8.0.25 mysql80-client-8.0.25
 apache24-2.4.46_2 w3m-0.5.3.20210424 texinfo-6.7_5,1 help2man-1.48.3 ImageMagick6-6.9.11.6_3,1
 logcheck-1.3.23 spamassassin-3.4.5 munin-master-2.0.67 munin-node-2.0.67 munin-common-2.0.67
 net-snmp-5.9_3,1 llvm10-10.0.1_5 automake-1.16.3 rrdtool-1.7.2_4 llvm80-8.0.1_4
 amavisd-new-2.12.0_1,1 intltool-0.51.0_1 hunspell-1.7.0_2 autoconf-2.69_3 mime-construct-1.11_2

 # pkg info -r perl5
 perl5-5.32.1_1:
 
 
 
 aspell-0.60.8_1,1 utf8proc-2.6.1 imake-1.0.8,1 automake-1.16.3 intltool-0.51.0_1 llvm10-10.0.1_5 llvm80-8.0.1_4
 apache24-2.4.46_2 rrdtool-1.7.2_4 munin-master-2.0.67 mysql80-server-8.0.25 mysql80-client-8.0.25 munin-node munin-common-2.0.67
 amavisd-new-2.12.0_1,1 spamassassin-3.4.5 groff-1.22.4_3 hunspell-1.7.0_2 autoconf-2.69_3
 texinfo-6.7_5,1 help2man-1.48.3 logcheck-1.3.23 mime-construct-1.11_2  recode-3.6_15 net-snmp-5.9_3,1

*FreeBSD 11.4 で、OpenSSL をインストールしている場合 [#a95904f9]

 # pkg info -r openssl-1.1.1k_1,1
 openssl-1.1.1k_1,1:
        bind911-9.11.32
        bind-tools-9.16.16
        mysql80-server-8.0.25
        mysql80-client-8.0.25
        python37-3.7.10_1
        freetds-1.2.21,1
        rsync-3.2.3_1
        postfix-3.6.0,1
        php73-snmp-7.3.28
        php73-openssl-7.3.28
        php73-imap-7.3.28
        php73-ftp-7.3.28
        curl-7.76.1
        unrar-6.01,6
        nettle-3.7.2_2
        p5-DBD-mysql-4.050_1
        ruby-2.7.3_1,1
        clamav-0.103.2,1
        monit-5.28.0
        spamassassin-3.4.5
        apache24-2.4.46_2
        openldap-sasl-client-2.4.58
        net-snmp-5.9_3,1
        py37-cryptography-3.3.2
        libarchive-3.5.1,1
        krb5-1.19.1
        postgresql95-client-9.5.25
        libzip-1.7.3
        panda-cclient-20130621_1
        trousers-0.3.14_3
        libevent-2.1.12
        python27-2.7.18_1
        apr-1.7.0.1.6.1_1
        cyrus-sasl-2.1.27_1
        p5-Crypt-SSLeay-0.72_3
        p5-Crypt-OpenSSL-RSA-0.31
        p5-Crypt-OpenSSL-Random-0.15
        p5-Crypt-OpenSSL-Bignum-0.09
        p5-Net-SSLeay-1.88


*php [#wa052a98]

 # pkg del -f 'php73-*'
 You may need to manually remove /usr/local/etc/php-fpm.conf if it is no longer needed.
 You may need to manually remove /usr/local/etc/php-fpm.d/www.conf if it is no longer needed.
 # rm  /usr/local/etc/php-fpm.conf
 # rm /usr/local/etc/php-fpm.d/www.conf



 php73-7.3.28                   PHP Scripting Language
 php73-bcmath-7.3.28            The bcmath shared extension for php
 php73-bz2-7.3.28               The bz2 shared extension for php
 php73-calendar-7.3.28          The calendar shared extension for php
 php73-ctype-7.3.28             The ctype shared extension for php
 php73-curl-7.3.28              The curl shared extension for php
 php73-dba-7.3.28               The dba shared extension for php
 php73-dom-7.3.28               The dom shared extension for php
 php73-enchant-7.3.28           The enchant shared extension for php
 php73-exif-7.3.28              The exif shared extension for php
 php73-extensions-1.0           "meta-port" to install PHP extensions
 php73-fileinfo-7.3.28          The fileinfo shared extension for php
 php73-filter-7.3.28            The filter shared extension for php
 php73-ftp-7.3.28               The ftp shared extension for php
 php73-gd-7.3.28                The gd shared extension for php
 php73-gettext-7.3.28           The gettext shared extension for php
 php73-gmp-7.3.28               The gmp shared extension for php
 php73-hash-7.3.28              The hash shared extension for php
 php73-iconv-7.3.28             The iconv shared extension for php
 php73-imap-7.3.28              The imap shared extension for php
 php73-interbase-7.3.28_1       The interbase shared extension for php
 php73-intl-7.3.28_1            The intl shared extension for php
 php73-json-7.3.28              The json shared extension for php
 php73-ldap-7.3.28              The ldap shared extension for php
 php73-mbstring-7.3.28          The mbstring shared extension for php
 php73-mysqli-7.3.28            The mysqli shared extension for php
 php73-odbc-7.3.28              The odbc shared extension for php
 php73-opcache-7.3.28           The opcache shared extension for php
 php73-openssl-7.3.28           The openssl shared extension for php
 php73-pcntl-7.3.28             The pcntl shared extension for php
 php73-pdo-7.3.28               The pdo shared extension for php
 php73-pdo_dblib-7.3.28         The pdo_dblib shared extension for php
 php73-pdo_firebird-7.3.28_1    The pdo_firebird shared extension for php
 php73-pdo_mysql-7.3.28         The pdo_mysql shared extension for php
 php73-pdo_odbc-7.3.28          The pdo_odbc shared extension for php
 php73-pdo_pgsql-7.3.28         The pdo_pgsql shared extension for php
 php73-pdo_sqlite-7.3.28        The pdo_sqlite shared extension for php
 php73-pecl-APCu-5.1.20         APC User Caching
 php73-pecl-imagick-3.4.4_2     PHP wrapper to the ImageMagick/GraphicsMagick library version 6
 php73-pecl-pdflib-4.1.4_1      PECL extension to create PDF on the fly
 php73-pgsql-7.3.28             The pgsql shared extension for php
 php73-phar-7.3.28              The phar shared extension for php
 php73-posix-7.3.28             The posix shared extension for php
 php73-pspell-7.3.28            The pspell shared extension for php
 php73-readline-7.3.28          The readline shared extension for php
 php73-session-7.3.28           The session shared extension for php
 php73-shmop-7.3.28             The shmop shared extension for php
 php73-simplexml-7.3.28         The simplexml shared extension for php
 php73-snmp-7.3.28              The snmp shared extension for php
 php73-soap-7.3.28              The soap shared extension for php
 php73-sockets-7.3.28           The sockets shared extension for php
 php73-sodium-7.3.28            The sodium shared extension for php
 php73-sqlite3-7.3.28           The sqlite3 shared extension for php
 php73-sysvmsg-7.3.28           The sysvmsg shared extension for php
 php73-sysvsem-7.3.28           The sysvsem shared extension for php
 php73-sysvshm-7.3.28           The sysvshm shared extension for php
 php73-tidy-7.3.28              The tidy shared extension for php
 php73-tokenizer-7.3.28         The tokenizer shared extension for php
 php73-wddx-7.3.28              The wddx shared extension for php
 php73-xml-7.3.28               The xml shared extension for php
 php73-xmlreader-7.3.28         The xmlreader shared extension for php
 php73-xmlrpc-7.3.28            The xmlrpc shared extension for php
 php73-xmlwriter-7.3.28         The xmlwriter shared extension for php
 php73-xsl-7.3.28               The xsl shared extension for php
 php73-zip-7.3.28               The zip shared extension for php
 php73-zlib-7.3.28              The zlib shared extension for php
 phpMyAdmin-php73-4.9.7         Set of PHP-scripts to manage MySQL over the web


----
Total access &counter(total);:本日 &counter(today);:昨日 &counter(yesterday);
#counter([total|today|yesterday]);


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS