gnu-getopt
Install command:
brew install gnu-getoptCommand-line option parsing utility
https://github.com/util-linux/util-linux
License: GPL-2.0-or-later
Development: Pull requests
Formula JSON API: /api/formula/gnu-getopt.json
Formula code: gnu-getopt.rb on GitHub
Bottle (binary package) installation support provided for:
| macOS on Apple Silicon |
golden gate | ✅ |
|---|---|---|
| tahoe | ✅ | |
| sequoia | ✅ | |
| Linux | ARM64 | ✅ |
| x86_64 | ✅ |
Current versions:
| stable | ✅ | 2.42.4 |
Patches:
| https://github.com/util-linux/util-linux/commit/d22edc2f100eb8dd83d3515758565cb73b0d2eed |
Keg-only because macOS provides BSD getopt.
Binaries:
getopt
GitHub Packages downloads:
| Last 30 days | 54,269 |
|---|---|
| Downloads | 13,489,097 |
| Analytics install events (30 days) | 2,624 |
| Downloads / install events (30 days) | 20.7× |
Source: GitHub Packages, fetched 2026-11-13T00:54:07Z. Analytics dates: 2026-10-14 to 2026-11-13. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.
Analytics:
| 30 days | 90 days | 365 days | |
|---|---|---|---|
| Installs | 2,624 | 8,580 | 47,453 |
Installs (--HEAD) | 0 | 4 | 24 |
| Installs on Request | 1,021 | 3,598 | 20,666 |
Installs on Request (--HEAD) | 0 | 4 | 24 |
| Build Errors | 17 |