Automic VaultAutomic Vault

brew

gnu-getopt mit Homebrew, zypper, Nix installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für gnu-getopt in AI-Agent-Workflows.

Installation

Weitere Installationsbefehle

macOS

Homebrewverifiziert · 100%
brew install gnu-getopt

local Homebrew formula metadata

Linux

openSUSE zypperverifiziert · 92%
sudo zypper install gnu-getopt

openSUSE Tumbleweed package metadata · gnu-getopt · Quelle: download.opensuse.org

Nixverifiziert · 92%
nix profile install nixpkgs#getopt

nixpkgs package indexes · pkgs/by-name/ge/getopt/package.nix · Quelle: api.github.com

Überblick

Paketzusammenfassung

Command-line option parsing utility

Befehle und Aliase

  • getopt

Verlauf

Projektgeschichte und Nutzung

`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`.

Projektgeschichte

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.

Adoptionsgeschichte

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.

Wie es verwendet wird

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.

Warum Paket-Nerds sich dafür interessieren

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.

Zeitleiste

  • 2001-era util-linux 2.11z: NEWS records replacement with getopt 1.1.3 by Frodo Looijaard.
  • 2007: util-linux-ng 2.13-pre6 NEWS records update to getopt 1.1.4.
  • 2006-2010: util-linux project used the util-linux-ng name.
  • 2026: util-linux README described kernel.org as primary repository and GitHub as backup.

Related projects

  • GNU `getopt(3)` supplies the parsing behavior used by util-linux `getopt(1)`.
  • BSD `getopt` is the system utility that Homebrew avoids shadowing on macOS.
  • util-linux is the upstream userland utility collection that contains the command.

Sicherheitslage

Noch keine Protected-Tool-Abdeckung gefunden

Für gnu-getopt wurde kein passendes lokales Secret-Handling-Manifest gefunden. Nucleus-Paketmetadaten bleiben hier veröffentlicht, damit künftige Abdeckung eine stabile Paket-URL hat.

Installationsverhalten

  • In den Formelmetadaten ist kein Homebrew-Post-install-Hook erfasst.
  • Homebrew-Bottle-Metadaten sind für 6 Plattformziele verfügbar.

Empfohlene Prüfung

Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.

Executables

Installierte Executables

BefehlArtSichtbarkeitHinweis
getoptcliglobales Executable

Aktualität

Version und Aktualität

Diese Signale trennen das Alter der Seitengenerierung, Aktivität des Paketmanagers und Upstream-Release-Vergleich. Versionsrückstand wird nur gemeldet, wenn eine Evidenz-URL und vergleichbare Versionen vorhanden sind.

Seite generiert2026-07-10
Manager-Version2.42.2
Manager aktualisiert2026-06-16
lokale DatenOK
Upstreamnot checked
neueste erkannte Versionnicht erkannt

https://github.com/util-linux/util-linux

Installationsmetadaten

Paketmetadaten

Paketschlüsselbrew:gnu-getopt
Version2.42.2
PaketmanagerHomebrew
Paketmanager-Seitehttps://formulae.brew.sh/formula/gnu-getopt
Homepagehttps://github.com/util-linux/util-linux
Repositoryhttps://github.com/util-linux/util-linux
Upstream-Dokumentationhttps://github.com/util-linux/util-linux/blob/master/misc-utils/getopt.1.adoc
LizenzGPL-2.0-or-later
Quellarchivhttps://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v2.42/util-linux-2.42.2.tar.gz
Zuletzt aktualisiert2026-06-16T16:47:43Z
Pulseupdated
Bottleverfügbar (auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnicht definiert
Dienstkeiner deklariert

Registry-Fakten

Details aus der Quelldatenbank

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegnu-getopt
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyyes
URL Keys
  • stable

Source-Datenbank-Treffer

Andere Paketmanager-Einträge

Treffer stammen aus externen Paketmanager-Indizes und bleiben von lokalen Automic-Vault-Paketlinks getrennt.

zypper95%

gnu-getopt 1.0.14-2.7

Java getopt Implementation

https://www.urbanophile.com/arenn/hacking/download.html

sudo zypper install gnu-getopt
  • License: LGPL-2.1-or-later
  • Category: Development/Libraries/Java
  • Architecture: noarch
  • Source Package: gnu-getopt
  • 1 stellt bereit
  • normalized package name match
  • Abgeglichen nach: Gnu Getopt
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gnu-getopt from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

gnu-getopt-javadoc 1.0.14-2.7

Javadoc for gnu.getopt

https://www.urbanophile.com/arenn/hacking/download.html

sudo zypper install gnu-getopt-javadoc
  • License: LGPL-2.1-or-later
  • Category: Development/Libraries/Java
  • Architecture: noarch
  • Source Package: gnu-getopt
  • 1 stellt bereit
  • normalized package name match
  • Abgeglichen nach: Gnu Getopt
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gnu-getopt-javadoc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
Nix92%

getopt

nix profile install nixpkgs#getopt
  • installed executable or alias match
  • Abgeglichen nach: Getopt
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ge/getopt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

Quellspur

Aus Repository-Daten generiert

Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.

Verwendete Quellen

  • Nucleus package database
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment