> For the complete documentation index, see [llms.txt](https://book.bsdcn.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.bsdcn.org/release/freebsd-14.5-release/14.5-installation.md).

# FreeBSD 14.5-RELEASE 安装说明

## 摘要

本文简要介绍如何安装 FreeBSD 14.5-RELEASE，以及如何升级运行早期版本的系统。

## 安装 FreeBSD

FreeBSD 手册中的[安装 FreeBSD](https://docs.freebsd.org/en/books/handbook/bsdinstall/)章节对安装程序本身提供了更深入的介绍，包括带截图的引导式操作教程。

## 升级 FreeBSD

如果要从早期 FreeBSD 版本升级，请仔细阅读[发行说明](https://www.freebsd.org/releases/14.5R/relnotes/)中的升级部分，了解重要的不兼容性问题。

## 从源码升级

基于源码的升级流程请参阅[从源码更新 FreeBSD](https://docs.freebsd.org/en/books/handbook/cutting-edge/#makeworld)。

Git 用户应使用 `releng/14.5` 分支，后续的安全公告或勘误通知都将应用到该分支。

## 使用 FreeBSD Update 升级

[freebsd-update(8)](https://man.freebsd.org/cgi/man.cgi?query=freebsd-update\&sektion=8\&format=html) 工具支持对运行早期 FreeBSD 版本的 amd64、arm64 和 i386 系统进行二进制升级。运行 13.5-RELEASE 或 14.4-RELEASE 的系统可按如下方式升级：

```sh
# freebsd-update fetch
# freebsd-update install
```

现在 [freebsd-update(8)](https://man.freebsd.org/cgi/man.cgi?query=freebsd-update\&sektion=8\&format=html) 工具可以获取 14.5-RELEASE 的相关文件。在此过程中，[freebsd-update(8)](https://man.freebsd.org/cgi/man.cgi?query=freebsd-update\&sektion=8\&format=html) 会请你协助合并配置文件。

```sh
# freebsd-update upgrade -r 14.5-RELEASE
# freebsd-update install
```

在更新非内核组件之前，必须先使用新安装的内核重启系统。

```sh
# shutdown -r now
```

重启后，需要再次运行 [freebsd-update(8)](https://man.freebsd.org/cgi/man.cgi?query=freebsd-update\&sektion=8\&format=html) 来安装新的用户空间组件：

```sh
# freebsd-update install
```

此时，由于系统库的更新，[freebsd-update(8)](https://man.freebsd.org/cgi/man.cgi?query=freebsd-update\&sektion=8\&format=html) 会提示从早期 FreeBSD 版本升级的用户重新编译或重新安装所有第三方应用程序（例如，从 Ports 树安装的 Ports，或由 [pkg(8)](https://man.freebsd.org/cgi/man.cgi?query=pkg\&sektion=8\&format=html) 安装的软件包）。

更新已安装的第三方应用程序之后（同样，仅在 [freebsd-update(8)](https://man.freebsd.org/cgi/man.cgi?query=freebsd-update\&sektion=8\&format=html) 打印出表示需要执行此操作的消息时），再次运行 [freebsd-update(8)](https://man.freebsd.org/cgi/man.cgi?query=freebsd-update\&sektion=8\&format=html)，让其删除旧的（不再使用的）系统库：

```sh
# freebsd-update install
```

最后，重启进入完整的 14.5-RELEASE 系统：

```sh
# shutdown -r now
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://book.bsdcn.org/release/freebsd-14.5-release/14.5-installation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
