使用freebsd-update 升级FreeBSD

为了学习使用AppJail,升级FreeBSD,从14.1-BETA3升级到14.1-RELEASE

当前最新的发布版本是14.1-RELEASE,所以upgrade后面跟了-r 版本号。

使用命令freebsd-update upgrade -r 14.1-RELEASE:
 

freebsd-update upgrade -r 14.1-RELEASE

执行后显示:

The following components of FreeBSD seem to be installed:
kernel/generic kernel/generic-dbg world/base world/lib32

The following components of FreeBSD do not seem to be installed:
world/base-dbg world/lib32-dbg

Does this look reasonable (y/n)? y
按y继续

Preparing to download files... 
这里稍微等了一会儿,反而后面fetch的很快。

Fetching 1786 patches 很快,但是fetch files就很慢了:

Fetching 1782 files 

最后显示:

The following files will be updated as part of updating to
14.1-RELEASE-p0:
/bin/freebsd-version
/boot/boot1.efi
/boot/kernel/aac.ko

.....

/boot/kernel/g_audio.ko
To install the downloaded upgrades, run 'freebsd-update [options] install'.

这样freebsd-update upgrade -r 14.1-RELEASE这条指令就完成了,按照提示执行freebsd-update install:

freebsd-update install 
src component not installed, skipped
Creating snapshot of existing boot environment... done.
Installing updates...
Kernel updates have been installed.  Please reboot and run
'freebsd-update [options] install' again to finish installing updates.

完成后按照提示重启服务器。

重启后再次执行freebsd-update install :

freebsd-update install 
src component not installed, skipped
Creating snapshot of existing boot environment... done.
Installing updates...
Restarting sshd after upgrade
Performing sanity check on sshd configuration.
Stopping sshd.
Waiting for PIDS: 1326.
Performing sanity check on sshd configuration.
Starting sshd.
Scanning /usr/share/certs/untrusted for certificates...
Scanning /usr/share/certs/trusted for certificates...
Scanning /usr/local/share/certs for certificates...
 done.

这样FreeBSD内核就从14.1-BETA3 升级到了14.1-REALEASE

uname -a
FreeBSD fbhost 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64

到这里就升级完成了,整个过程方便又安全,很棒!整个过程大约用了4个小时,主要是网速有点不给力。当然,如果是新机器,直接安装新版本系统会更快!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值