> 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-11.2-release/11.2-installation.md).

# FreeBSD 11.2-RELEASE 安装说明

## 摘要

本文简要说明如何安装 FreeBSD 11.2-RELEASE 以及从早期版本升级系统。

## 安装 FreeBSD

FreeBSD 手册中的 [安装 FreeBSD](https://docs.freebsd.org/en/books/handbook/bsdinstall/) 一章提供了关于安装程序本身的更深入信息，包括带截图的引导式操作说明。

## 升级 FreeBSD

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

## 从源代码升级

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

对于 SVN，请使用 `releng/11.2` 分支，后续的安全公告和勘误通知将应用于此分支。

## 使用“FreeBSD Update”升级

[freebsd-update(8)](https://man.freebsd.org/cgi/man.cgi?query=freebsd-update\&sektion=8\&format=html) 工具支持对运行早期 FreeBSD 版本的 i386 和 amd64 系统进行二进制升级。运行 `10.4-RELEASE` 或 `11.1-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) 工具可以获取属于 11.2-RELEASE 的内容。在此过程中，[freebsd-update(8)](https://man.freebsd.org/cgi/man.cgi?query=freebsd-update\&sektion=8\&format=html) 会请求协助合并配置文件。

```sh
# freebsd-update upgrade -r 11.2-RELEASE
```

```sh
# 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 版本升级的系统用户会被 [freebsd-update(8)](https://man.freebsd.org/cgi/man.cgi?query=freebsd-update\&sektion=8\&format=html) 提示重新构建所有第三方应用程序（例如从 Ports 树安装的 Port）。

更新已安装的第三方应用程序后（同样，仅当 [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
```

最后，重新启动进入 11.2-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-11.2-release/11.2-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.
