惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
美团技术团队
Microsoft Azure Blog
Microsoft Azure Blog
V
Visual Studio Blog
Jina AI
Jina AI
博客园_首页
M
MIT News - Artificial intelligence
D
DataBreaches.Net
L
LangChain Blog
宝玉的分享
宝玉的分享
F
Fortinet All Blogs
A
About on SuperTechFans
月光博客
月光博客
Stack Overflow Blog
Stack Overflow Blog
Google DeepMind News
Google DeepMind News
N
Netflix TechBlog - Medium
Y
Y Combinator Blog
腾讯CDC
Vercel News
Vercel News
雷峰网
雷峰网
GbyAI
GbyAI
aimingoo的专栏
aimingoo的专栏
阮一峰的网络日志
阮一峰的网络日志
博客园 - 【当耐特】

挖井

免费搭建域名邮箱,使用Cloudflare、Mailgun和Gmail 被优化了 C++ Builder12.1试用体验 Windows平台使调试器在子进程启动时attach 湖州龙之梦乐园跨年 修改DNS去广告 Debian上使用Nginx搭建WebDav服务要点 武夷山之旅 配置Debian路由器双WAN接入
更新FreeBSD、NetBSD、OpenBSD、DragonflyBSD
missdeer · 2024-04-14 · via 挖井

之前在PVE上装了几个BSD系统后,也没怎么用,就时不时更新一下,各个BSD有各自的更新方式,这里简单记一下。

更新都是在root下进行,或在命令前加sudo。系统更新尽量在控制台进行,不要通过ssh远程登录执行,因为ssh进程很可能会在更新过程中被干掉。

FreeBSD

更新系统

更新补丁

1
freebsd-update fetch install

更新大版本

1
2
3
4
5
6
7
8
9
freebsd-update -r 14.0-RELEASE upgrade
freebsd-update install
reboot
freebsd-update install
pkg-static install -f pkg
pkg update
pkg upgrade
/usr/sbin/freebsd-update install
reboot

更新预编译包

1
pkg update && pkg upgrade

修改包镜像源

修改文件/usr/local/etc/pkg/repos/FreeBSD.conf

NetBSD

更新系统

1
sysupgrade auto ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-10.0/amd64

更新预编译包

1
pkgin update && pkgin upgrade

修改包镜像源

修改文件/usr/pkg/etc/pkgin/repositories.conf

OpenBSD

更新系统

1
sysupgrade auto https://ftp.usa.openbsd.org/pub/OpenBSD/7.5/amd64

更新预编译包

修改包镜像源

修改文件/etc/installurl

DragonflyBSD

更新系统

官方文档,需要自己下载源代码,编译,安装,再重启。

更新预编译包

1
pkg update && pkg upgrade

修改包镜像源

修改文件/usr/local/etc/pkg/repos/df-latest.conf