# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 fpc

查看 fpc 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:fpc
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install fpc
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install fpc
```

  证据: MacPorts ports tree: lang/fpc/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add fpc
```

  证据: Alpine Linux edge package indexes: fpc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install fpc
```

  证据: Debian stable package indexes: fpc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install fpc
```

  证据: Fedora Rawhide package metadata: fpc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#fpc
```

  证据: nixpkgs package indexes: fpc from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S fpc
```

  证据: Arch Linux sync databases: fpc from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install fpc
```

  证据: openSUSE Tumbleweed package metadata: fpc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:fpc
- **软件包管理器:** Homebrew
- **版本:** 3.2.2
- **来源摘要:** Free Pascal: multi-architecture Pascal compiler
- **主页:** <https://www.freepascal.org/>
- **最后更新:** 2026-08-02T16:35:33+09:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- bin2obj (别名)
- chmcmd (别名)
- chmls (别名)
- cldrparser (别名)
- compileserver (别名)
- data2inc (别名)
- delp (别名)
- fd2pascal (别名)
- fpc (别名)
- fpcjres (别名)
- fpclasschart (别名)
- fpcmake (别名)
- fpcmkcfg (别名)
- fpcres (别名)
- fpcreslipo (别名)
- fpcsubst (别名)
- fpdoc (别名)
- fppkg (别名)
- fprcp (别名)
- h2pas (别名)
- h2paspp (别名)
- instantfpc (别名)
- json2pas (别名)
- makeskel (别名)
- mka64ins (别名)
- mkarmins (别名)
- mkinsadd (别名)
- mkx86ins (别名)
- pas2fpm (别名)
- pas2jni (别名)
- pas2js (别名)
- pas2ut (别名)
- plex (别名)
- postw32 (别名)
- ppca64 (别名)
- ppdep (别名)
- ppudump (别名)
- ppufiles (别名)
- ppumove (别名)
- ptop (别名)
- pyacc (别名)
- rmcvsdir (别名)
- rstconv (别名)
- unihelper (别名)
- unitdiff (别名)
- webidl2pas (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 3.2.2
## 项目历史与用法

Free Pascal Compiler, commonly FPC, is a mature open-source compiler for Pascal and Object Pascal. Its official site describes it as a 16-, 32-, and 64-bit Turbo Pascal and Delphi-compatible compiler with many CPU and operating-system targets.

### 项目历史

The compiler was originally named FPK-Pascal. The official FAQ gives a compact project history: it started in June 1993, small programs worked by October 1993, the compiler compiled its own sources by March 1995, it was released on the Internet in March 1996, and version 1.0 arrived in July 2000.

FPC grew from a Turbo Pascal-compatible compiler into a broad language-runtime project with compiler, RTL, packages, utilities, tests, installer, documentation, and release-building repositories. The home page lists targets across x86, AMD64, PowerPC, SPARC, ARM, AArch64, MIPS, Motorola 68k, AVR, JVM, and more, with development support for RISC-V, Xtensa, Z80, WebAssembly, LLVM, and pas2js.

### 采用历史

FPC's adoption is closely tied to Pascal compatibility and cross-platform reach. It gave Pascal and Object Pascal users a free compiler path for Linux, Windows, BSD, macOS, DOS, OS/2, embedded platforms, and later mobile and unusual targets.

In August 2021, the project announced that all SVN repositories had been converted to Git and moved to GitLab, with the Mantis bug tracker also converted. That move is a clear package-history milestone because it changed how downstream packagers, contributors, and distribution maintainers track source.

### 使用方式

Users compile Pascal and Object Pascal programs with fpc and related target-specific ppcXYZ compiler binaries. The distribution also includes documentation, tools such as fpcmake, fpdoc, h2pas, ppudump, and package sources including the Free Component Library.

The user guide documents fpc.cfg as the compiler configuration file. On Unix-like systems, the compiler looks in the current directory, the user's home directory as .fpc.cfg, PPC_CONFIG_PATH, an etc directory above the compiler directory, and /etc unless -n disables config lookup.

### 为什么软件包爱好者会关心

FPC is package-nerd significant because it is both a compiler package and a bootstrap ecosystem. Packaging it means managing compiler binaries, RTL units, packages, tools, documentation, target support, and the usual self-hosting concerns.

It also anchors Lazarus and a broader Object Pascal open-source stack, making it a key dependency for desktop GUI development, legacy Pascal migration, cross-compilation, and Pascal-to-JavaScript workflows.

### 时间线

- 1993: FPK-Pascal project started.
- 1995: Compiler compiled its own sources.
- 1996: Released on the Internet.
- 2000: Version 1.0 released.
- 2015: Version 3.0.0 released.
- 2020: Version 3.2.0 released.
- 2021: Version 3.2.2 released and repositories moved from SVN to GitLab.

### Related projects

- Lazarus is the most visible adjacent project in the Free Pascal ecosystem.
- Related FPC subprojects and tools include the Free Component Library, RTL, fpdoc, fpcmake, h2pas, pas2js, and target-specific compiler backends.

### 来源

- <https://gitlab.com/freepascal.org/fpc/source>
- <https://www.freepascal.org/>
- <https://www.freepascal.org/develop.var>
- <https://www.freepascal.org/docs-html/current/user/usersu10.html>
- <https://www.freepascal.org/docs.html>
- <https://www.freepascal.org/faq.var>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: fpc.cfg, ~/.fpc.cfg, $PPC_CONFIG_PATH/fpc.cfg, /usr/local/etc/fpc.cfg, /etc/fpc.cfg
## 其他软件包管理器记录

- Debian apt - fp-compiler - 3.2.2+dfsg-46: normalized package name match | Debian stable package indexes: fp-compiler from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Free Pascal - compiler dependency package | https://www.freepascal.org/
- Debian apt - fp-compiler-3.2.2 - 3.2.2+dfsg-46: normalized package name match | Debian stable package indexes: fp-compiler-3.2.2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Free Pascal - compiler | https://www.freepascal.org/
- Debian apt - fp-docs - 3.2.2+dfsg-46: normalized package name match | Debian stable package indexes: fp-docs from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Free Pascal - documentation dependency package | https://www.freepascal.org/
- Debian apt - fp-docs-3.2.2 - 3.2.2+dfsg-46: normalized package name match | Debian stable package indexes: fp-docs-3.2.2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Free Pascal - documentation | https://www.freepascal.org/
- Debian apt - fp-ide - 3.2.2+dfsg-46: normalized package name match | Debian stable package indexes: fp-ide from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Free Pascal - IDE dependency package | https://www.freepascal.org/
- Debian apt - fp-ide-3.2.2 - 3.2.2+dfsg-46: normalized package name match | Debian stable package indexes: fp-ide-3.2.2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Free Pascal - IDE | https://www.freepascal.org/
- Debian apt - fp-units-base - 3.2.2+dfsg-46: normalized package name match | Debian stable package indexes: fp-units-base from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Free Pascal - base units dependency package | https://www.freepascal.org/
- Debian apt - fp-units-base-3.2.2 - 3.2.2+dfsg-46: normalized package name match | Debian stable package indexes: fp-units-base-3.2.2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Free Pascal - base units | https://www.freepascal.org/
- Debian apt - fp-units-db - 3.2.2+dfsg-46: normalized package name match | Debian stable package indexes: fp-units-db from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Free Pascal - database-library units dependency package | https://www.freepascal.org/
- Debian apt - fp-units-db-3.2.2 - 3.2.2+dfsg-46: normalized package name match | Debian stable package indexes: fp-units-db-3.2.2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Free Pascal - database-library units | https://www.freepascal.org/
- Debian apt - fp-units-fcl - 3.2.2+dfsg-46: normalized package name match | Debian stable package indexes: fp-units-fcl from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Free Pascal - Free Component Library dependency package | https://www.freepascal.org/
- Debian apt - fp-units-fcl-3.2.2 - 3.2.2+dfsg-46: normalized package name match | Debian stable package indexes: fp-units-fcl-3.2.2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Free Pascal - Free Component Library | https://www.freepascal.org/
- Debian apt - fp-units-fv - 3.2.2+dfsg-46: normalized package name match | Debian stable package indexes: fp-units-fv from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Free Pascal - Free Vision units dependency package | https://www.freepascal.org/
- Debian apt - fp-units-fv-3.2.2 - 3.2.2+dfsg-46: normalized package name match | Debian stable package indexes: fp-units-fv-3.2.2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Free Pascal - Free Vision units | https://www.freepascal.org/
- Debian apt - fp-units-gfx - 3.2.2+dfsg-46: normalized package name match | Debian stable package indexes: fp-units-gfx from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Free Pascal - graphics-library units dependency package | https://www.freepascal.org/
- Debian apt - fp-units-gfx-3.2.2 - 3.2.2+dfsg-46: normalized package name match | Debian stable package indexes: fp-units-gfx-3.2.2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Free Pascal - graphics-library units | https://www.freepascal.org/


## Combined YAML source

View the package source record on GitHub. [combined/fpc.yml](https://github.com/mxcl/pkgdb/blob/main/combined/fpc.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
