libmagic

Install command:
brew install libmagic

Implementation of the file(1) command

https://www.darwinsys.com/file/

License: BSD-2-Clause-Darwin AND BSD-2-Clause AND LicenseRef-Homebrew-public-domain

Development: Pull requests

Formula JSON API: /api/formula/libmagic.json

Formula code: libmagic.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
sonoma ✅
macOS on
Intel
sonoma ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 5.48

GitHub Packages downloads:

Last 30 days120,845
Downloads3,209,138
Analytics install events (30 days)5,057
Downloads / install events (30 days)23.9×

Source: GitHub Packages, fetched 2026-11-19T00:56:44Z. Analytics dates: 2026-10-20 to 2026-11-19. 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 days90 days365 days
Installs5,05412,88361,727
Installs (--HEAD)3739
Installs on Request1,3204,24127,258
Installs on Request (--HEAD)3739
Build Errors2