coreutils

Install command:
brew install coreutils

GNU File, Shell, and Text utilities

https://www.gnu.org/software/coreutils/

License: GPL-3.0-or-later

Development: Pull requests

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

Formula code: coreutils.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 ✅ 9.12
head ⚡️ HEAD

Revision: 1

Depends on:

gmp 6.3.0 GNU multiple precision arithmetic library
openssl@4 4.1.0 Cryptography and SSL/TLS Toolkit

Depends on when building from source:

texinfo 7.3 Official documentation format of the GNU project

Uses from macOS: gperf (build)

Conflicts with: b2sum (because both install `b2sum` binaries), gfold (because both install `gfold` binaries), idutils (because both install `gid` and `gid.1`)

Binaries: b2sum, base32, basenc, dir, dircolors, factor, g[, gb2sum, gbase32, gbase64, gbasename, gbasenc, gcat, gchgrp, gchmod, gchown, gchroot, gcksum, gcomm, gcp, gcsplit, gcut, gdate, gdd, gdf, gdir, gdircolors, gdirname, gdu, gecho, genv, gexpand, gexpr, gfactor, gfalse, gfmt, gfold, ggroups, ghead, ghostid, gid, ginstall, gjoin, glink, gln, glogname, gls, gmd5sum, gmkdir, gmkfifo, gmknod, gmktemp, gmv, gnice, gnl, gnohup, gnproc, gnumfmt, god, gpaste, gpathchk, gpinky, gpr, gprintenv, gprintf, gptx, gpwd, greadlink, grealpath, grm, grmdir, gseq, gsha1sum, gsha224sum, gsha256sum, gsha384sum, gsha512sum, gshred, gshuf, gsleep, gsort, gsplit, gstat, gstdbuf, gstty, gsum, gsync, gtac, gtail, gtee, gtest, gtimeout, gtouch, gtr, gtrue, gtruncate, gtsort, gtty, guname, gunexpand, guniq, gunlink, gusers, gvdir, gwc, gwho, gwhoami, gyes, hostid, md5sum, nproc, numfmt, pinky, ptx, realpath, sha1sum, sha224sum, sha256sum, sha384sum, sha512sum, shred, shuf, stdbuf, tac, timeout, truncate, vdir

Commands also provided by macOS and the commands dir, dircolors, vdir have been installed with the prefix "g".
If you need to use these commands with their normal names, you can add a "gnubin" directory to your PATH with:
    PATH="$HOMEBREW_PREFIX/opt/coreutils/libexec/gnubin:$PATH"

GitHub Packages downloads:

Last 30 days1,185,310
Downloads48,840,109
Analytics install events (30 days)59,327
Downloads / install events (30 days)20.0×

Source: GitHub Packages, fetched 2026-11-01T00:47:23Z. Analytics dates: 2026-10-02 to 2026-11-01. 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
Installs59,246199,6661,039,615
Installs (--HEAD)81153808
Installs on Request50,409184,201964,518
Installs on Request (--HEAD)81153804
Build Errors136
Build Errors (--HEAD)15