Replaced apt with homebrew commands for Mac