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

推荐订阅源

Google DeepMind News
Google DeepMind News
L
LangChain Blog
H
Help Net Security
博客园_首页
T
Tailwind CSS Blog
Microsoft Security Blog
Microsoft Security Blog
T
The Blog of Author Tim Ferriss
雷峰网
雷峰网
Recent Announcements
Recent Announcements
D
DataBreaches.Net
U
Unit 42
Vercel News
Vercel News
I
InfoQ
Martin Fowler
Martin Fowler
Microsoft Azure Blog
Microsoft Azure Blog
Apple Machine Learning Research
Apple Machine Learning Research
S
SegmentFault 最新的问题
Jina AI
Jina AI
博客园 - 叶小钗
博客园 - 【当耐特】
罗磊的独立博客
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
月光博客
月光博客
Last Week in AI
Last Week in AI

挖井

免费搭建域名邮箱,使用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