CONTENTS
Lastmodified 2013-08-13 (火) 17:15:42
http://www.freebsd.org/doc/ja/books/handbook/updating-upgrading-freebsdupdate.html
FreeBSD 7.1R-p15 から、9.1Rへfreebsd-update upgrade アップグレード
mail# df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s1a 507630 215442 251578 46% / devfs 1 1 0 100% /dev /dev/ad0s1e 507630 16 467004 0% /tmp /dev/ad0s1f 150729078 9392978 129277774 7% /usr /dev/ad0s1d 2012718 1022116 829586 55% /var mail# mail# mail# freebsd-update -r 9.1-RELEASE upgrade Looking up update.FreeBSD.org mirrors... 3 mirrors found. Fetching metadata signature for 7.1-RELEASE from update4.freebsd.org... done. Fetching metadata index... done. Fetching 1 metadata patches. done. Applying metadata patches... done. Inspecting system... done. The following components of FreeBSD seem to be installed: kernel/generic src/base src/bin src/cddl 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/base world/catpages world/dict world/games world/info world/manpages world/proflibs The following components of FreeBSD do not seem to be installed: world/doc Does this look reasonable (y/n)? y Fetching metadata signature for 9.1-RELEASE from update4.freebsd.org... done. Fetching metadata index... done. Fetching 1 metadata patches. done. Applying metadata patches... done. Fetching 1 metadata files... done. The update metadata is correctly signed, but failed an integrity check. Cowardly refusing to proceed any further.
http://viktorpetersson.com/2012/01/16/how-to-upgrade-freebsd-8-2-to-freebsd-9-0-with-virtio/
mail# sed -i '' -e 's/=_/=%@_/' /usr/sbin/freebsd-update mail# mail# freebsd-update -r 9.1-RELEASE upgrade
viで各種ファイル編集。
mail# freebsd-update install Installing updates...rmdir: ///boot/kernel: Directory not empty Kernel updates have been installed. Please reboot and run "/usr/sbin/freebsd-update install" again to finish installing updates. mail# reboot
FreeBSD 9.1-RELEASE (GENERIC) #0 r243826: Tue Dec 4 06:55:39 UTC 2012
mail# freebsd-update install Installing updates...ln: ///root/.cshrc: Cross-device link ln: ///root/.profile: Cross-device link rmdir: ///usr/src/sys/dev/random: Directory not empty rmdir: ///usr/src/sys/dev: Directory not empty rmdir: ///usr/src/sys: Directory not empty rmdir: ///usr/src/contrib/gcc: Directory not empty rmdir: ///usr/src/contrib: Directory not empty 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. mail#
http://www.yomaigoto.jp/archives/461
mail# portupgrade php5-5.4.6 Stale dependency: php5-5.4.6 --> perl-5.8.9_7 -- manually run 'pkgdb -F' to fix, or specify -O to force.
mail# pkgdb -Ff
root@blackcube:/usr/ports/lang/php5 # portinstall /usr/ports/lang/php5 [Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... - 378 packages found (-0 +1) . done] [Gathering depends for lang/php5 ............................................ done] ---> Installing 'php5-5.4.12' from a port (lang/php5) ---> Building '/usr/ports/lang/php5' ===> Cleaning for php5-5.4.12 ===> php5-5.4.12 has known vulnerabilities: Affected package: php5-5.4.12 Type of problem: php5 -- Multiple vulnerabilities.
Reference: http://portaudit.FreeBSD.org/1d23109a-9005-11e2-9602-d43d7e0c7c02.html
=> Please update your ports tree and try again. *** [check-vulnerable] Error code 1 Stop in /usr/ports/lang/php5. *** [build] Error code 1 Stop in /usr/ports/lang/php5. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portinstall20130320-60779-1yyhp8w-0 env make ** Fix the problem and try again. ** Listing the failed packages (-:ignored / *:skipped / !:failed) ! lang/php5 (unknown build error) root@blackcube:/usr/ports/lang/php5 #
2013-03-20 11:13:49
124 11:00 cd /usr/Backups/Blackcube_G7/usr/local/bin 125 11:01 scp ph* blackcube.smb.net:/usr/local/bin 126 11:02 scp ph* blackcube.smb.net:/usr/local/bin
Total access 4805:本日 1:昨日 1