# 使用 Homebrew, MacPorts 安装 fantom

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

## 安装

```sh
sudo av install brew:fantom
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install fantom
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install fantom
```

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

## 软件包事实

- **软件包键:** brew:fantom
- **软件包管理器:** Homebrew
- **版本:** 1.0.83
- **来源摘要:** Object oriented, portable programming language
- **主页:** <https://fantom.org/>
- **仓库:** <https://github.com/fantom-lang/fantom>
- **最后更新:** 2026-06-22T14:03:18-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- fan (别名)
- fan.bat (别名)
- fanc (别名)
- fanc.bat (别名)
- fanlaunch (别名)
- fanlaunch.bat (别名)
- fanp (别名)
- fanp.bat (别名)
- fanr (别名)
- fanr.bat (别名)
- fansh (别名)
- fansh.bat (别名)
- fansubstitute (别名)
- fant (别名)
- fant.bat (别名)
- flux.bat (别名)
- jstub (别名)
- jstub.bat (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Fantom is a portable programming language and runtime that runs on the JVM and modern web browsers. Its official docs emphasize Java-like syntax, static and dynamic typing, a system library, closures, immutability, actor concurrency, and a pod-based deployment model.

### 项目历史

The official WhyFantom document says Fantom was initially developed in 2005 during a period of stagnation in Java and before statically typed JavaScript-transpiled options were available. The original mission targeted portable software across the JVM and .NET CLR, later shifting focus to the JVM and JavaScript for web applications.

Fantom's design centers on portable APIs and pods. The documentation argues that pods unify deployment, versioning, and namespace, avoiding the mismatch between Java packages and JAR files.

### 采用历史

Fantom is distributed through an official zip that works on Windows, macOS, and Linux, with Homebrew documented for macOS, a Windows installer linked from Fantom Factory, and a Docker image published from the repository. The community is centered on the official forum and Slack.

The GitHub release stream shows continued maintenance through Fantom 1.0.83 in March 2026, while the official changelog records ongoing compiler, JavaScript, library, timezone, YAML, markdown, graphics, and tooling work.

### 使用方式

The command-line toolset includes `fan` for running Fantom programs, `fanc` for compilation, `fansh` for an interactive shell, `fant` for tests, and `fanr` for repository and package management. The official docs index groups these under command-line tools and language/runtime documentation.

Fantom source is organized around pods and can target server-side JVM execution and browser-oriented JavaScript output. Package users typically install the runtime, place its tools on PATH, and then run or build pod-based applications.

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

Fantom matters to package nerds as a complete but relatively niche language ecosystem: runtime, compiler, shell, test tool, repository manager, standard pods, official docs, and cross-platform binary distribution all ship together. Its pod model gives it its own package/deployment vocabulary rather than simply borrowing Java's JAR/package split.

### 时间线

- 2005: Fantom initially developed.
- 2020: GitHub repository created and v1.0.74 released on GitHub.
- 2024: v1.0.80 introduced a new ECMAScript class-based JavaScript design.
- 2026: v1.0.83 released.

### Related projects

- The JVM is a primary runtime target.
- JavaScript is the browser and web-application target.
- Eggbox is linked by the official site as a pod repository.

### 来源

- <https://fantom.org/>
- <https://fantom.org/doc>
- <https://fantom.org/doc/docIntro/WhyFantom>
- <https://fantom.org/doc/docIntro/ChangeLog>
- <https://fantom.org/download>
- <https://github.com/fantom-lang/fantom>
- <https://raw.githubusercontent.com/fantom-lang/fantom/master/readme.md>
- <https://api.github.com/repos/fantom-lang/fantom>
- <https://api.github.com/repos/fantom-lang/fantom/releases?per_page=10>


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal

## 其他软件包管理器记录

- MacPorts - fantom: normalized package name match | MacPorts ports tree: java/fantom/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

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