# 安装 ant

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

## 安装

```sh
sudo av install brew:ant
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ant
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install ant
```

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

- dnf (92%):

```sh
sudo dnf install ant
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#ant
```

  证据: nixpkgs package indexes: pkgs/by-name/an/ant/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S ant
```

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

- zypper (92%):

```sh
sudo zypper install ant
```

  证据: openSUSE Tumbleweed package metadata: ant from https://download.opensuse.org/tumbleweed/repo/oss/repodata/155b97171d05e27afd950b6fe0d55513ff38f4597110664535bceedc680bbe6fd459f0733718dcc21dcf0efc7c8250fd1390c73d4790b42e62fb2c16a87242e5-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install ant
```

  证据: Chocolatey community package catalog: ant from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','ansicon'

- Scoop (92%):

```sh
scoop install main/ant
```

  证据: Scoop official bucket manifest trees: bucket/ant.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:ant
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/ant>
- **版本:** 1.10.17
- **来源摘要:** Java build tool
- **主页:** <https://ant.apache.org/>
- **上游文档:** <https://ant.apache.org/>
- **许可证:** Apache-2.0
- **源码归档:** <https://www.apache.org/dyn/closer.lua?path=ant/binaries/apache-ant-1.10.17-bin.tar.xz>
- **更新:** 2026-04-10T19:07:05Z
- **生成来源:** 2026-05-26T22:45:13+00:00

## 可执行文件

- ant (cli)
- antRun (cli)
- antRun.pl (cli)
- complete-ant-cmd.pl (cli)
- runant.pl (cli)
- runant.py (cli)
- ant (别名)
- antRun (别名)
- antRun.pl (别名)
- complete-ant-cmd.pl (别名)
- runant.pl (别名)
- runant.py (别名)

## 依赖

- openjdk

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 新鲜度

- 页面生成时间: 2026-05-26
- 管理器版本: 1.10.17
- 管理器更新时间: 2026-04-10
- 本地数据: ok
- 上游仓库: https://ant.apache.org/
- info: Release/tag comparison is only available for GitHub repositories.

## 安全说明

generalized runtime or code generation signal.

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

## 相关链接

- [openjdk](https://www.automicvault.com/pkg/brew/openjdk/) - Runtime dependency declared by Homebrew.
- [ant-contrib](https://www.automicvault.com/pkg/brew/ant-contrib/) - Popular package that depends on this formula.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/)

## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
