# Installer ant avec Homebrew, chocolatey, apt, dnf, Nix, pacman, zypper, scoop

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de ant pour les workflows d'agents IA.

## installation

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

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install ant
```

  Preuve: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install ant
```

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

  Preuve: Fedora Rawhide package metadata: ant 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#ant
```

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

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

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

### Windows

- Chocolatey (92%):

```sh
choco install ant
```

  Preuve: Chocolatey community package catalog: ant from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','another-redis-desktop-manager'

- Scoop (92%):

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

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

## Faits du paquet

- **Clé du paquet:** brew:ant
- **Gestionnaire de paquets:** Homebrew
- **Version:** 1.10.17
- **Résumé source:** Java build tool
- **Page d'accueil:** <https://ant.apache.org/>
- **Dernière mise à jour:** 2026-06-22T14:02:43-07:00
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

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

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 1.10.17
## Historique du projet et usages

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.

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

- 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


## Notes de sécurité

generalized runtime or code generation signal.

- **Risque Geiger:** yellow / moyen
- 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
## Autres enregistrements de gestionnaires de paquets

- 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-39.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Java build tool | https://ant.apache.org/
- dnf - ant-antlr - 1.10.15-39.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Optional antlr tasks for ant | https://ant.apache.org/
- dnf - ant-apache-bcel - 1.10.15-39.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Optional apache bcel tasks for ant | https://ant.apache.org/
- dnf - ant-apache-bsf - 1.10.15-39.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Optional apache bsf tasks for ant | https://ant.apache.org/
- dnf - ant-apache-oro - 1.10.15-39.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Optional apache oro tasks for ant | https://ant.apache.org/
- dnf - ant-apache-regexp - 1.10.15-39.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Optional apache regexp tasks for ant | https://ant.apache.org/
- dnf - ant-apache-resolver - 1.10.15-39.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Optional apache resolver tasks for ant | https://ant.apache.org/
- dnf - ant-apache-xalan2 - 1.10.15-39.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Optional apache xalan2 tasks for ant | https://ant.apache.org/
- dnf - ant-commons-logging - 1.10.15-39.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Optional commons logging tasks for ant | https://ant.apache.org/


## Combined YAML source

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


## Sources

- 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
