首 页 ┆ 源码下载 ┆ IT学院 ┆ 字体下载 ┆ 模板下载 ┆ 源码发布 ┆ 广告合作 ┆ 网站地图
► 设为首页
► 加入收藏
► 联系我们
源码下载 >> ASP源码 | PHP源码 | ASP.net源码 | JSP源码 | CGI源码 | VC/C++源码 | VB源码 | Delphi源码 | Flash源码
文章学院 >> 网络编程 | 网页设计 | 图形图象 | 数据库 | 服务器 | 网络媒体 | 网络安全 | 操作系统 | 办公软件 | 软件开发 | 黑客知识
字体下载 >> 精制字体 | 非英字体 | 艺术字体 | 著名字体 | 哥特式 | 简单字体 | 手写体 | 节假日 | 图案字体 | 精度像素 | 中文字体
模板下载 >> 企业门户 | 数码网络 | 休闲娱乐 | 影视音乐 | 旅游名胜 | 文化艺术 | 电子商务 | 个性展示 | 登陆导航 | Flash模板
►►您当前的位置:源码园 → IT学院 → 操作系统 → FreeBSD → 文章内容

FreeBSD 5.3 to FreeBSD 5.4 binary upgrade

作者:佚名  来源:网上收集  发布时间:2006-5-22 18:39:16
In February 2005 I put instructions online explaining how to perform a binary upgrade from FreeBSD 4.8 to FreeBSD 4.11. When it came time to upgrade my FreeBSD 5.3 system to instead run FreeBSD 5.4, I found that some slightly different steps were needed, so I decided to put together a 5.3-to-5.4 upgrade guide as well.
What follows are the steps I used to upgrade my FreeBSD 5.3 system to FreeBSD 5.4-RELEASE; I can't guarantee that they'll work for everyone, but this should be at least a good starting point.
N.B. I only install the "base" "dict", "doc", and "manpages" distributions here -- I don't want the "catpages", compat, "games", "info", "ports", "proflibs", or "src" distributions. If you want a different set of distributions, change the lists in steps 6, 9, and 10.
If you haven't done so already, install FreeBSD Update. cd /usr/ports/security/freebsd-update && make install cleancp /usr/local/etc/freebsd-update.conf.sample /usr/local/etc/freebsd-update.confUsing FreeBSD Update, generate a list of files from the base system which have been locally modified. We might not want to overwrite these. freebsd-update -v IDS | tail +8 | grep . | cut -c 2- - > /root/base-modifiedEdit this list and delete files for which you don't want to keep your local changes. You'll almost certainly want to delete any lines starting with usr/, but you'll probably want to keep the lines which start with etc/ or var/log/. ee /root/base-modified(or use vi or any other text editor you have installed.) Generate a list of files installed which belong to the old RELEASE. We'll be using this list to make sure we don't leave old files lying around after the upgrade. cut -f 1 -d '$' /usr/local/freebsd-update/work/md5all | uniq | while read X; do if [ -f $X ]; then echo $X; fi; done | sort > /root/base-oldDownload an ISO image for the new release and mount it. fetch -o /usr/disc1.iso ftp://ftp.freebsd.org/pub/FreeBSD/ISO-IMAGES-i386/5.4/5.4-RELEASE-i386-disc1.isomdconfig -a -t vnode -f /usr/disc1.iso -u 9mount -t cd9660 -o ro /dev/md9 /mntFor the files which have been locally modified, extract the new versions to a temporary directory. mkdir /usr/releasefor dist in base dict doc manpages; do cat /mnt/5.4-RELEASE/$/$.?? | tar -xpzf - -I /root/base-modified -C /usr/releasedone 2>/dev/nullFor each of these files (in /root/base-modified), compare the existing and new versions to see if you need to update anything. (I didn't, but sometimes there are necessary changes in configuration files -- for example, in FreeBSD 4.7 a new "sshd" user was added.) grep ^etc /root/base-modified | while read f; do diff -u /$ /usr/release/$done | moreClear the immutable flag on files from the base system to make sure that we can overwrite or delete them. xargs chflags noschg < /root/base-oldExtract the new release (minus the locally modified files that we don't want to overwrite). for dist in base dict doc manpages; do /mnt/rescue/cat /mnt/5.4-RELEASE/$/$.?? | /mnt/rescue/tar -Uxpzf - -X /root/base-modified -C /doneGenerate a list of files which belong to the new release, and compare this to the list of files which were in the old release, so that we can clean up the garbage left behind. ( for dist in base dict doc manpages; do cat /mnt/5.4-RELEASE/$/$.?? | tar -tzf -done; cat /root/base-modified ) | sort | uniq | lam -s '/' - > /root/base-newcomm -13 /root/base-new /root/base-old | xargs rmClean up. umount /mntmdconfig -d -u 9rm -r /usr/releaserm /usr/disc1.isorm /root/base-modified /root/base-old /root/base-newReboot into your new 5.4-RELEASE system. shutdown -r nowFrom: http://www.daemonology.net/freebsd-upgrade-5.3-to-5.4/

[] [返回上一页] [打 印]
  • 上一篇文章:Linux Htb队列规定指南中文版(转载)
  • 下一篇文章:第一次安装freebsd的过程:_)

  • 相关文章:
  • FreeDOS简介
  • Linux+FreeBSD mini-HOWTO
  • IP Masquerade mini HOWTO
  • Linux Shadow-Password-HOWTO - 6. upgrade或patc
  • freeswan 文档摘录
  • freebsd+apache+mysql+php+phpmyadmin+zend+discuz安...
  • FreeBSD 使用手册
  • [组图]第一次安装freebsd的过程:_)
  • FreeBSD 5.3 to FreeBSD 5.4 binary upgrade
  • 我对freebsd分区的理解
  • FreeBsd
  • 在freebsd上安装linuxigd
关于本站 - 网站帮助 - 广告合作 - 下载声明 - 友情连接 - 网站地图 - 源码发布
Copyright © 2003-2009 Ymyasp.Com. All Rights Reserved .
备案序号:粤ICP备07029071号