macOS
brew install gnu-getoptlocal Homebrew formula metadata
brew
Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de gnu-getopt pour les workflows d'agents IA.
installation
brew install gnu-getoptlocal Homebrew formula metadata
sudo zypper install gnu-getoptopenSUSE Tumbleweed package metadata · gnu-getopt · Source: download.opensuse.org
nix profile install nixpkgs#getoptnixpkgs package indexes · pkgs/by-name/ge/getopt/package.nix · Source: api.github.com
aperçu
Command-line option parsing utility
historique
`gnu-getopt` packages util-linux's enhanced `getopt(1)` command, a shell-facing option parser that uses GNU `getopt(3)` behavior and is commonly installed separately where the base system ships a less capable `getopt`.
The upstream project is util-linux, described by its README as a collection of Linux utilities. util-linux carried the name util-linux-ng from 2006 through 2010, then continued under the util-linux name with kernel.org as the primary source location and GitHub as a backup web interface.
The util-linux NEWS file records `getopt` updates in the 2.11 and 2.13 development era, including replacement with getopt 1.1.3 by Frodo Looijaard and an update to 1.1.4. The man page identifies the command as the enhanced `getopt`, focused on parsing command options for shell procedures.
As part of util-linux, enhanced `getopt` is part of the broad Linux userland toolbox. On macOS, Homebrew packages it as `gnu-getopt` and marks it keg-only because macOS provides BSD `getopt`; on Linux, the formula also avoids conflict with the full util-linux package. That packaging split is the main reason the Homebrew package name differs from the upstream project name.
Practitioners use `getopt` in shell scripts to normalize short and long options, detect invalid arguments, preserve whitespace through shell quoting, and test whether the enhanced implementation is present. The `-T` probe is explicitly documented for distinguishing this implementation from older `getopt(1)` variants.
The package matters because option parsing is a portability trap in shell scripts. Installing `gnu-getopt` gives macOS and other non-GNU environments the util-linux behavior many Linux-oriented scripts expect, while Homebrew's keg-only status prevents accidental replacement of the system utility.
posture de sécurité
Aucun manifest local de gestion des secrets correspondant n'a été trouvé pour gnu-getopt. Les métadonnées de paquet Nucleus restent publiées ici afin que la couverture future dispose d'une URL stable.
Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.
exécutables
| Commande | Type | Exposition | Note |
|---|---|---|---|
getopt | cli | exécutable global |
fraîcheur
Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.
https://github.com/util-linux/util-linux
métadonnées d'installation
| Clé du paquet | brew:gnu-getopt |
|---|---|
| Version | 2.42.2 |
| Gestionnaire de paquets | Homebrew |
| Page du gestionnaire de paquets | https://formulae.brew.sh/formula/gnu-getopt |
| Page d'accueil | https://github.com/util-linux/util-linux |
| Dépôt | https://github.com/util-linux/util-linux |
| Docs amont | https://github.com/util-linux/util-linux/blob/master/misc-utils/getopt.1.adoc |
| Licence | GPL-2.0-or-later |
| Archive source | https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v2.42/util-linux-2.42.2.tar.gz |
| Dernière mise à jour | 2026-06-16T16:47:43Z |
| Pulse | updated |
| Bouteille | disponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| post-install Homebrew | non défini |
| Service | aucun déclaré |
faits du registre
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | gnu-getopt |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | yes |
| URL Keys |
|
correspondances dans les bases sources
Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.
gnu-getopt 1.0.14-2.7
Java getopt Implementation
https://www.urbanophile.com/arenn/hacking/download.html
sudo zypper install gnu-getoptgnu-getopt-javadoc 1.0.14-2.7
Javadoc for gnu.getopt
https://www.urbanophile.com/arenn/hacking/download.html
sudo zypper install gnu-getopt-javadocgetopt
nix profile install nixpkgs#getoptpiste source
Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.