FreeBSD 5.3 to FreeBSD 5.4 binary upgrade

2016-01-29 18:10 6 1 收藏

FreeBSD 5.3 to FreeBSD 5.4 binary upgrade,FreeBSD 5.3 to FreeBSD 5.4 binary upgrade

【 tulaoshi.com - Linux 】

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/

来源:http://www.tulaoshi.com/n/20160129/1504645.html

延伸阅读
1、远程登录: $ssh 192.168.1.90 -l bsduser 2、传输文件 远程机器: $ftp 到自己的机器(开ftp服务)或者:本地机器使用scp$scp 本地文件 用户名@远程地址:远程目标文件名然后输入password即可。 3、安装软件:#sysinstall,直接安装release的二进制包 4、常用软件:wget,lftp,lynx,cvsup,pkg_install,pkg_remove,pkg_tree 5、如...
标签: 服务器
FreeBSD 8.2 安装教程图文详解 一、说明: 操作系统:FreeBSD 8.2 下载地址:ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/ISO-IMAGES/8.2/FreeBSD-8.2-RELEASE-i386-disc1.iso 二、安装系统 用启动盘成功引导之后,出现下面的界面 系统运维 www.osyunwei.com 温馨提醒:qihang01原创内容版权所有,转载请注...
标签: 服务器
配置FreeBSD的FTP和NFS 出现以下提示就可以进行FTP设置了:User Confirmation Requested Do you want to have anonymous FTP access to this machine? Yes [ No ]选择默认的[ No ] 并按下 Enter 键将仍然可以让在这台机器上有账号的用户访问 FTP。要启用FTP匿名访问,用方向键选择 [ Yes ] 然后按 Enter键。您会看到下面(或...
装过一次,就对以前很不好理解的Slice有了很好的理解。这是初步的认识,我想以后还要理解更透彻。 我硬盘6个G,分2个区,C盘装有WIN2000_2G,D盘4G;现装有freebsd,因freebsd要求装在主分区,所以用PQ在D 盘移动了2个G出来做一个新的主分区;PQ显示为(*)。 分区表 freebsd分区信息——————————————————————C 主分区 ad0s...
文章是转载来的,作者从用词上看应该是港台那边的,可惜不知道名字! 测试的结论是,FreeBSD现在缺乏稳定而且高效率的Filesystem让MySQL MyISAM使用。 先解释一下现在的环境,有两台Tyan Server,上面都是Dual Quad Core与12GB RAM (6*2GB),接两颗73GB SCSI硬碟,两台的差异在于CPU,新进的这台是E5410 ( 2333Mhz,2*6144KB L2...

经验教程

391

收藏

96

精华推荐

热门标签

微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部