# Install ant with Homebrew, chocolatey, apt, dnf, Nix, pacman, scoop, zypper

Java build tool. Version 1.10.17 via Homebrew; verified 2026-06-22.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install ant
```

  Evidence: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install ant
```

  Evidence: 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
```

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

- Nix (92%):

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

  Evidence: 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
```

  Evidence: 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
```

  Evidence: openSUSE Tumbleweed package metadata: ant from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install ant
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:ant
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/ant>
- **Version:** 1.10.17
- **Source summary:** Java build tool
- **Homepage:** <https://ant.apache.org/>
- **Repository:** <https://gitbox.apache.org/repos/asf?p=ant.git%3Ba%3Dsummary>
- **Upstream docs:** <https://ant.apache.org/faq.html>
- **License:** Apache-2.0
- **Source archive:** <https://www.apache.org/dyn/closer.lua?path=ant/binaries/apache-ant-1.10.17-bin.tar.xz>
- **Last updated:** 2026-06-22T14:02:43-07:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

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

## Dependencies

- openjdk

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.10.17
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://ant.apache.org/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

Apache Ant is a Java library and command-line build tool that drives build processes described as XML targets and extension points. It became the classic Java-era alternative to Make: portable, task-oriented, and distributed as a packageable command named ant.

### Project history

Apache's FAQ says Ant began inside the Tomcat code base when Tomcat was donated to the Apache Software Foundation. James Duncan Davidson, also the original Tomcat author, created it to build Tomcat and nothing else.

The same FAQ records the inflection point: other open source Java projects, especially Jakarta and older Java Apache projects, realized Ant solved problems they had with Makefiles. In January 2000 Ant moved to a separate CVS module, became independent of Tomcat, and became Apache Ant. The first stand-alone official release, Ant 1.1, followed on 19 July 2000.

Ant's manual preserves the core convention that made it sticky: running ant with no arguments looks for build.xml in the current directory and runs the default target. That simple file convention became part of Java project muscle memory before Maven and Gradle dominated newer builds.

### Adoption history

Ant spread with Apache Jakarta and early Java open source because it replaced platform-specific Make behavior with Java tasks and XML build files. The FAQ explicitly says Ant became the build tool of choice for many projects after starting as Tomcat's build mechanism.

Package-manager adoption followed naturally. A Java developer could install ant from a distro, Homebrew, Chocolatey, Scoop, or Nix, then run the same build.xml across operating systems. The official manual also documents user extension loading through ${user.home}/.ant/lib and ANT_HOME/lib, which gave packaged Ant a stable core while letting developers add optional tasks and third-party jars outside the base package.

### How it is used

The default command is simply ant, which runs build.xml in the current directory. Users can pass -buildfile or -f for another build file, -Dname=value for properties, target names for specific tasks, logging flags such as -quiet and -verbose, and -lib for extra task jars.

The Unix wrapper reads ~/.antrc before startup; the Windows wrapper runs %HOME%\antrc_pre.bat and %HOME%\antrc_post.bat. Those files are startup hooks, while build.xml is the project build definition.

### Why package nerds care

Ant matters to package nerds because it is both build dependency and historical artifact. Many old Java source packages still expect ant, build.xml, and optional task jars, so distros keep it around even when newer Java projects prefer Maven or Gradle.

It also embodies an earlier packaging style: a stable launcher plus ANT_HOME, user-local .ant/lib extensions, and XML task definitions. Understanding Ant explains a large slice of legacy Java packaging, bootstrap builds, and why package recipes so often patch build.xml rather than invoking a generated build graph.

### Timeline

- 2000: Ant moves from Tomcat into a separate CVS module and becomes Apache Ant.
- 2000: Tomcat 3.1 ships an early wider-audience Ant version later called Ant 0.3.1.
- 2000: Ant 1.1 is released as the first official stand-alone product.
- 2003: Ant 1.6 changes library loading around ANT_HOME/lib and ${user.home}/.ant/lib.
- 2024: Apache announces the Ant 1.9.x release series end of life.
- 2026: Apache Ant 1.10.17 is released for Java 8 and higher.

### Related projects

- Apache Ivy is an Ant-related dependency management project.
- Apache AntUnit is a test framework for Ant build files.
- Maven and Gradle are later Java build tools that displaced Ant for many new projects but still coexist with it in legacy and bootstrap builds.

### Sources

- <https://ant.apache.org/faq.html>
- <https://ant.apache.org/git.html>
- <https://ant.apache.org/index.html>
- <https://ant.apache.org/manual/running.html>
- source_facts.package-manager


## Security Notes

generalized runtime or code generation signal.

- **Geiger risk:** yellow / medium
- generalized runtime or code generation 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: ./build.xml, ~/.antrc
- Windows: build.xml in current directory, %HOME%\antrc_pre.bat, %HOME%\antrc_post.bat
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** ant
- **Aliases:** ant@1.10
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Debian apt - ant - 1.10.15-1: normalized package name match | Debian stable package indexes: ant from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Java based build tool like make | http://ant.apache.org
- Debian apt - ant-doc - 1.10.15-1: normalized package name match | Debian stable package indexes: ant-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Java based build tool like make - API documentation and manual | http://ant.apache.org
- Debian apt - ant-optional - 1.10.15-1: normalized package name match | Debian stable package indexes: ant-optional from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Java based build tool like make - optional libraries | http://ant.apache.org
- Nix - ant: normalized package name match | nixpkgs package indexes: pkgs/by-name/an/ant/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - ant - 1.10.14-1: normalized package name match | Ubuntu 24.04 LTS package indexes: ant from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Java based build tool like make | http://ant.apache.org
- Ubuntu apt - ant-doc - 1.10.14-1: normalized package name match | Ubuntu 24.04 LTS package indexes: ant-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Java based build tool like make - API documentation and manual | http://ant.apache.org
- Ubuntu apt - ant-optional - 1.10.14-1: normalized package name match | Ubuntu 24.04 LTS package indexes: ant-optional from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Java based build tool like make - optional libraries | http://ant.apache.org
- dnf - ant - 1.10.15-38.fc45: normalized package name match | Fedora Rawhide package metadata: ant from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Java build tool | https://ant.apache.org/
- dnf - ant-antlr - 1.10.15-38.fc45: normalized package name match | Fedora Rawhide package metadata: ant-antlr from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Optional antlr tasks for ant | https://ant.apache.org/
- dnf - ant-apache-bcel - 1.10.15-38.fc45: normalized package name match | Fedora Rawhide package metadata: ant-apache-bcel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Optional apache bcel tasks for ant | https://ant.apache.org/
- dnf - ant-apache-bsf - 1.10.15-38.fc45: normalized package name match | Fedora Rawhide package metadata: ant-apache-bsf from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Optional apache bsf tasks for ant | https://ant.apache.org/
- dnf - ant-apache-oro - 1.10.15-38.fc45: normalized package name match | Fedora Rawhide package metadata: ant-apache-oro from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Optional apache oro tasks for ant | https://ant.apache.org/
- dnf - ant-apache-regexp - 1.10.15-38.fc45: normalized package name match | Fedora Rawhide package metadata: ant-apache-regexp from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Optional apache regexp tasks for ant | https://ant.apache.org/
- dnf - ant-apache-resolver - 1.10.15-38.fc45: normalized package name match | Fedora Rawhide package metadata: ant-apache-resolver from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Optional apache resolver tasks for ant | https://ant.apache.org/
- dnf - ant-apache-xalan2 - 1.10.15-38.fc45: normalized package name match | Fedora Rawhide package metadata: ant-apache-xalan2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Optional apache xalan2 tasks for ant | https://ant.apache.org/
- dnf - ant-commons-logging - 1.10.15-38.fc45: normalized package name match | Fedora Rawhide package metadata: ant-commons-logging from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Optional commons logging tasks for ant | https://ant.apache.org/


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [openjdk](https://www.automicvault.com/pkg/brew/openjdk/) - Runtime dependency declared by Homebrew.
- [maven](https://www.automicvault.com/pkg/brew/maven/) - Shares av.db curated category or tags: build-tool, build-tools, cli, developer-tools, java.
- [maven-shell](https://www.automicvault.com/pkg/brew/maven-shell/) - Shares av.db curated category or tags: build-tool, build-tools, cli, developer-tools, java.
- [mill](https://www.automicvault.com/pkg/brew/mill/) - Shares av.db curated category or tags: build-tool, build-tools, cli, developer-tools, java.
- [dub](https://www.automicvault.com/pkg/brew/dub/) - Shares av.db curated category or tags: build-tool, build-tools, cli, developer-tools.
- [fobis](https://www.automicvault.com/pkg/brew/fobis/) - Shares av.db curated category or tags: build-tool, build-tools, cli, developer-tools.
- [fypp](https://www.automicvault.com/pkg/brew/fypp/) - Shares av.db curated category or tags: build-tool, build-tools, cli, developer-tools.
- [gradle](https://www.automicvault.com/pkg/brew/gradle/) - Shares av.db curated category or tags: build-tools, cli, developer-tools, java.
- [grunt-cli](https://www.automicvault.com/pkg/brew/grunt-cli/) - Shares av.db curated category or tags: build-tool, build-tools, cli, developer-tools.
- [ivy](https://www.automicvault.com/pkg/brew/ivy/) - Both packages touch the same language runtime or ecosystem. Shared terms: ant, apache, build, build-tools, cli.

## Combined YAML source

View the package source record on GitHub. [combined/ant.yml](https://github.com/automic-vault/db/blob/main/combined/ant.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
