CONTENTS


Lastmodified 2021-06-14 (月) 06:56:28


https://qiita.com/psaxuww/items/4f14414999fc1b31ca11

FreeBSD 11.4 to 12.2

freebsd-update -r 12.2-RELEASE upgrade

# 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

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

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

reboot

/usr/sbin/freebsd-update install

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

 # portupgrade -arf --batch 

pkg-static install -f pkg

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

portupgrade -arf --batch or pkg upgrade

/usr/sbin/freebsd-update install

FreeBSD 10 から Bind の同梱がなくなった

ので、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 977:本日 1:昨日 0

Counter: 977, today: 1, yesterday: 0

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