# Installer gengetopt avec Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

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

## installation

```sh
sudo av install brew:gengetopt
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install gengetopt
```

  Preuve: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gengetopt
```

  Preuve: MacPorts ports tree: devel/gengetopt/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add gengetopt
```

  Preuve: Alpine Linux edge package indexes: gengetopt from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install gengetopt
```

  Preuve: Debian stable package indexes: gengetopt from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install gengetopt
```

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

  Preuve: nixpkgs package indexes: pkgs/by-name/ge/gengetopt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S gengetopt
```

  Preuve: Arch Linux sync databases: gengetopt from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install gengetopt
```

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

## Faits du paquet

- **Clé du paquet:** brew:gengetopt
- **Gestionnaire de paquets:** Homebrew
- **Version:** 2.23
- **Résumé source:** Generate C code to parse command-line arguments via getopt_long
- **Page d'accueil:** <https://www.gnu.org/software/gengetopt/>
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- gengetopt (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

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

GNU Gengetopt is a GNU programming tool that generates C command-line option parsers from declarative option descriptions. Its generated code uses getopt_long and fills a struct, saving C and C++ programmers from hand-writing the same option parsing, validation, help, and configuration-file plumbing.

### Historique du projet

The Savannah README says Gengetopt was originally written by Roberto Arturo Tena Sanchez and later maintained by Tomas Volf. The manual positions it as a tool for C and C++ programmers and documents .ggo input files, generated parsers, generated help output, configuration-file parsing, multiple parsers, and operation on systems without getopt_long.

### Historique d'adoption

Gengetopt's adoption came through the GNU toolchain ecosystem: GNU FTP hosted regular tarball releases from the early 2000s through the 2.23 release in 2019, and the tool appears in Unix package managers as a code generator for projects that want generated C parsers without taking on a larger framework.

### Modes d'utilisation

Practitioners write a .ggo file describing short and long options, defaults, required values, groups, modes, and help text, then run gengetopt to produce C source and header files. Autoconf and Automake projects use it when generated parser code is preferable to a hand-maintained getopt_long loop.

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

Gengetopt is a classic small GNU build dependency: it is rarely the star of a system, but it sits in source-release and distribution workflows where reproducible generated C code is easier to audit and package than bespoke argument parsers.

### Chronologie

- 2003: GNU FTP listed gengetopt 2.10 tarballs.
- 2009: version 2.22.4 switched the project repository from CVS to Git.
- 2012: version 2.22.6 added versiontext and strict-hidden support while fixing Mac OS X compilation.
- 2019: GNU FTP listed the 2.23 release.

### Related projects

- Related tools and standards include getopt_long, GNU Coding Standards, GNU Autoconf, GNU Automake, and Doxygen comments in generated files.

### Sources

- <https://formulae.brew.sh/formula/gengetopt>
- <https://ftp.gnu.org/gnu/gengetopt/>
- <https://git.savannah.gnu.org/cgit/gengetopt.git/plain/NEWS?h=master>
- <https://git.savannah.gnu.org/cgit/gengetopt.git/plain/README?h=master>
- <https://www.gnu.org/software/gengetopt/>
- <https://www.gnu.org/software/gengetopt/gengetopt.html>


## Notes de sécurité

narrow executable package without higher-risk signals.

- **Risque Geiger:** vert / faible
- narrow executable package without higher-risk signals

## Autres enregistrements de gestionnaires de paquets

- Debian apt - gengetopt - 2.23+dfsg1-1: normalized package name match | Debian stable package indexes: gengetopt from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | skeleton main.c generator | https://www.gnu.org/software/gengetopt/
- Nix - gengetopt: normalized package name match | nixpkgs package indexes: pkgs/by-name/ge/gengetopt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - gengetopt - 2.23+dfsg1-1: normalized package name match | Ubuntu 24.04 LTS package indexes: gengetopt from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | skeleton main.c generator | https://www.gnu.org/software/gengetopt/
- apk - gengetopt - 2.23-r2: normalized package name match | Alpine Linux edge package indexes: gengetopt from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Tool to write command line option parsing code for C programs | https://www.gnu.org/software/gengetopt/
- apk - gengetopt-dev - 2.23-r2: normalized package name match | Alpine Linux edge package indexes: gengetopt-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Tool to write command line option parsing code for C programs (development files) | https://www.gnu.org/software/gengetopt/
- apk - gengetopt-doc - 2.23-r2: normalized package name match | Alpine Linux edge package indexes: gengetopt-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Tool to write command line option parsing code for C programs (documentation) | https://www.gnu.org/software/gengetopt/
- dnf - gengetopt - 2.23-18.fc45: normalized package name match | Fedora Rawhide package metadata: gengetopt from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Tool to write command line option parsing code for C programs | http://www.gnu.org/software/gengetopt/
- pacman - gengetopt - 2.23-4: normalized package name match | Arch Linux sync databases: gengetopt from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A tool to write command line option parsing code for C programs | https://www.gnu.org/software/gengetopt/gengetopt.html
- zypper - gengetopt - 2.23-1.26: normalized package name match | openSUSE Tumbleweed package metadata: gengetopt from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Commandline parser generator | https://www.gnu.org/software/gengetopt/
- MacPorts - gengetopt: normalized package name match | MacPorts ports tree: devel/gengetopt/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/gengetopt.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gengetopt.yml)


## Sources

- 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
