> For the complete documentation index, see [llms.txt](https://handbook.bsdcn.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://handbook.bsdcn.org/di-4-zhang-an-zhuang-ying-yong-cheng-xu-ruan-jian-bao-he-ports/4.1.-gai-shu.md).

# 4.1.概述

FreeBSD 自带了丰富的系统工具作为基本系统的一部分。此外，FreeBSD 提供了两种互补技术用于安装第三方软件：FreeBSD Ports，用于从源代码安装；以及软件包，用于从预构建的二进制文件安装。可以使用任一方法从本地设备或网络安装软件。

阅读本章，你将了解：

* 二进制软件包和 Ports 之间的区别。
* 如何查找已移植到 FreeBSD 的第三方软件。
* 如何使用 pkg 管理二进制软件包。
* 如何使用 Ports 从源代码构建第三方软件。
* 如何找到应用程序安装的文件，以便做安装后的配置。
* 软件安装失败时该怎么办。
