To clarify, Mac ships with a native Unix [1], derived from BSD, not a posix subsystem. It has its own init (launchd) and its own GUI, but most of it is a Unix.
Using Macports or homebrew gets you most of the packages that are available for the various Linuxes, GNU utilities etc.
Using Macports or homebrew gets you most of the packages that are available for the various Linuxes, GNU utilities etc.
[1] https://en.wikipedia.org/wiki/Darwin_%28operating_system%29