macOS
brew install gengetoptlocal Homebrew formula metadata
sudo port install gengetoptMacPorts ports tree · devel/gengetopt/Portfile · source: api.github.com
brew
Generate C code to parse command-line arguments via getopt_long. Version 2.23 via Homebrew; verified from local package data.
install
brew install gengetoptlocal Homebrew formula metadata
sudo port install gengetoptMacPorts ports tree · devel/gengetopt/Portfile · source: api.github.com
sudo apk add gengetoptAlpine Linux edge package indexes · gengetopt · source: dl-cdn.alpinelinux.org
sudo apt install gengetoptDebian stable package indexes · gengetopt · source: deb.debian.org
sudo dnf install gengetoptFedora Rawhide package metadata · gengetopt · source: dl.fedoraproject.org
nix profile install nixpkgs#gengetoptnixpkgs package indexes · pkgs/by-name/ge/gengetopt/package.nix · source: api.github.com
sudo pacman -S gengetoptArch Linux sync databases · gengetopt · source: geo.mirror.pkgbuild.com
sudo zypper install gengetoptopenSUSE Tumbleweed package metadata · gengetopt · source: download.opensuse.org
overview
Generate C code to parse command-line arguments via getopt_long
history
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.
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.
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.
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.
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.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
gengetopt | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://www.gnu.org/software/gengetopt/
install metadata
| Package key | brew:gengetopt |
|---|---|
| Version | 2.23 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/gengetopt |
| Homepage | https://www.gnu.org/software/gengetopt/ |
| Upstream docs | https://www.gnu.org/software/gengetopt |
| License | GPL-3.0-or-later |
| Source archive | https://ftpmirror.gnu.org/gnu/gengetopt/gengetopt-2.23.tar.xz |
| Build dependencies | texinfo |
| Bottle | available (on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | gengetopt |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
gengetopt 2.23+dfsg1-1
skeleton main.c generator
https://www.gnu.org/software/gengetopt/
sudo apt install gengetoptgengetopt
nix profile install nixpkgs#gengetoptgengetopt 2.23+dfsg1-1
skeleton main.c generator
https://www.gnu.org/software/gengetopt/
sudo apt install gengetoptgengetopt 2.23-r2
Tool to write command line option parsing code for C programs
https://www.gnu.org/software/gengetopt/
sudo apk add gengetoptgengetopt-dev 2.23-r2
Tool to write command line option parsing code for C programs (development files)
https://www.gnu.org/software/gengetopt/
sudo apk add gengetopt-devgengetopt-doc 2.23-r2
Tool to write command line option parsing code for C programs (documentation)
https://www.gnu.org/software/gengetopt/
sudo apk add gengetopt-docgengetopt 2.23-17.fc44
Tool to write command line option parsing code for C programs
http://www.gnu.org/software/gengetopt/
sudo dnf install gengetoptgengetopt 2.23-4
A tool to write command line option parsing code for C programs
https://www.gnu.org/software/gengetopt/gengetopt.html
sudo pacman -S gengetoptgengetopt 2.23-1.24
Commandline parser generator
https://www.gnu.org/software/gengetopt/
sudo zypper install gengetoptgengetopt
sudo port install gengetoptsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.