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

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

Formula code: libmagic.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
sequoia
sonoma
ventura
macOS on
Intel
sonoma
ventura
Linux ARM64
x86_64

Current versions:

stable 5.46

Analytics:

Installs (30 days)
libmagic 4,649
libmagic --HEAD 5
Installs on Request (30 days)
libmagic 2,419
libmagic --HEAD 5
Build Errors (30 days)
libmagic 2
Installs (90 days)
libmagic 13,901
libmagic --HEAD 18
Installs on Request (90 days)
libmagic 7,412
libmagic --HEAD 18
Installs (365 days)
libmagic 58,121
libmagic --HEAD 67
Installs on Request (365 days)
libmagic 30,892
libmagic --HEAD 67
Fork me on GitHub