«前の日記(2008-01-20) 最新 次の日記(2008-01-23)» 編集

echo.createdb.net

https://echo.createdb.net/fts4p/
[PHPマニュアル検索] [PGSQLマニュアル検索]

2008-01-22

_ [OS] FreeBSD6.1 → FreeBSD6.3にアップグレード

FreeBSD6.3のマイナーバージョンアップに対応した「freebsd-update」を使ってのアップグレードです。
ほぼノーカットで記録。

# 参考URL
http://www.freebsd.org/releases/6.3R/announce.html
http://www.daemonology.net/blog/2007-11-10-freebsd-minor-version-upgrade.html

fetch http://people.freebsd.org/~cperciva/freebsd-update-upgrade.tgz
fetch http://people.freebsd.org/~cperciva/freebsd-update-upgrade.tgz.asc

gpg --verify freebsd-update-upgrade.tgz.asc freebsd-update-upgrade.tgz
Warning: using insecure memory!
gpg: 金 11/16 23:01:38 2007 JSTにDSA鍵ID CA6CDFB2で施された署名←「CA6CDFB2」であれば良いみたい。

tar -xf freebsd-update-upgrade.tgz

su
mkdir /var/db/freebsd-update
sh freebsd-update.sh -f freebsd-update.conf -r 6.3-RELEASE upgrade
Looking up update.FreeBSD.org mirrors... 1 mirrors found.
Fetching public key from update1.FreeBSD.org... done.
Fetching metadata signature for 6.1-RELEASE from update1.FreeBSD.org... done.
Fetching metadata index... done.
Fetching 2 metadata files... done.
Inspecting system... done.

The following components of FreeBSD seem to be installed:
kernel/smp world/base

The following components of FreeBSD do not seem to be installed:
kernel/generic src/base src/bin src/contrib src/crypto src/etc src/games
src/gnu src/include src/krb5 src/lib src/libexec src/release src/rescue
src/sbin src/secure src/share src/sys src/tools src/ubin src/usbin
world/catpages world/dict world/doc world/games world/info
world/manpages world/proflibs

Does this look reasonable (y/n)? y

Fetching metadata signature for 6.3-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... done.
Fetching files from 6.1-RELEASE for merging... done.
Preparing to download files... done.
Fetching 1996 patches.....10....・・・....1990... done.
Applying patches... done.
Fetching 132 files... done.
Attempting to automatically merge changes in files... done.

The following changes, which occurred between FreeBSD 6.1-RELEASE and
FreeBSD 6.3-RELEASE have been merged into /etc/ssh/sshd_config:
--- current version
+++ new version
@@ -1,7 +1,7 @@
-#      $OpenBSD: sshd_config,v 1.72 2005/07/25 11:59:40 markus Exp $
-#      $FreeBSD: src/crypto/openssh/sshd_config,v 1.42.2.1 2005/09/11 16:50:35 des Exp $
+#      $OpenBSD: sshd_config,v 1.74 2006/07/19 13:07:10 dtucker Exp $
+#      $FreeBSD: src/crypto/openssh/sshd_config,v 1.42.2.4 2006/11/11 00:51:28 des Exp $

 # 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
@@ -12,11 +12,11 @@
 # default value.

 # Note that some of FreeBSD's defaults differ from OpenBSD's, and
 # FreeBSD has a few additional options.

-#VersionAddendum FreeBSD-20060930
+#VersionAddendum FreeBSD-20061110

 #Port 22
 #Protocol 2
 #AddressFamily any
 #ListenAddress 0.0.0.0
@@ -72,18 +72,19 @@

 # GSSAPI options
 #GSSAPIAuthentication no
 #GSSAPICleanupCredentials yes

-# Set this to 'no' to disable PAM authentication, account processing,
+# Set this to 'no' to disable PAM authentication, account processing,
 # and session processing. If this is enabled, PAM authentication will
-# be allowed through the ChallengeResponseAuthentication mechanism.
-# Depending on your PAM configuration, this may bypass the setting of
-# PasswordAuthentication, PermitEmptyPasswords, and
-# "PermitRootLogin without-password". If you just want the PAM account and
-# session checks to run without PAM authentication, then enable this but set
-# ChallengeResponseAuthentication=no
+# be allowed through the ChallengeResponseAuthentication and
+# PasswordAuthentication.  Depending on your PAM configuration,
+# PAM authentication via ChallengeResponseAuthentication may bypass
+# the setting of "PermitRootLogin without-password".
+# If you just want the PAM account and session checks to run without
+# PAM authentication, then enable this but set PasswordAuthentication
+# and ChallengeResponseAuthentication to 'no'.
 #UsePAM yes
 UsePAM no

 #AllowTcpForwarding yes
 #GatewayPorts no
@@ -100,11 +101,18 @@
 #ClientAliveInterval 0
 #ClientAliveCountMax 3
 #UseDNS yes
 #PidFile /var/run/sshd.pid
 #MaxStartups 10
+#PermitTunnel no

 # no default banner path
 #Banner /some/path

 # override default of no subsystems
 Subsystem      sftp    /usr/libexec/sftp-server
+
+# Example of overriding settings on a per-user basis
+#Match User anoncvs
+#      X11Forwarding no
+#      AllowTcpForwarding no
+#      ForceCommand cvs server
Does this look reasonable (y/n)? y

The following files will be added as part of updating to 6.3-RELEASE-p0:
/bin/pgrep




The following files will be updated as part of updating to 6.3-RELEASE-p0:
/COPYRIGHT
/bin/[





sh freebsd-update.sh -f freebsd-update.conf install
Installing updates...
Kernel updates have been installed.  Please reboot and run
"freebsd-update.sh install" again to finish installing updates.

shutdown -r now

sh freebsd-update.sh -f freebsd-update.conf 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 "freebsd-update.sh install"
again to finish installing updates.

shutdown -r now

uname -r
6.3-RELEASE

以上

Coming up soon: Upgrading from FreeBSD 6.x to FreeBSD 7.x.
と書いてるのも楽しみです。


«前の日記(2008-01-20) 最新 次の日記(2008-01-23)» 編集