Homebrew has three Ollama packages: the formula ollama, the cask ollama-app, which installs the Mac app, and the cask ollama-binary, which links only the ollama command into Homebrew's bin folder. The formula comes with a service that runs ollama serve. Homebrew lists the formula as MIT licensed, and its service sets OLLAMA_FLASH_ATTENTION to 1 and OLLAMA_KV_CACHE_TYPE to q8_0, where Ollama's FAQ gives f16 as the default cache type. The two casks each name the other as a conflict. Ollama's macOS page describes the app and its DMG, and its README links the formula under package managers. Name the package you mean with --formula or --cask, because this page did not test which one a bare brew install ollama picks, or what happens if the formula and a cask are both installed.
Formula ollama | Cask ollama-app | Cask ollama-binary | |
|---|---|---|---|
| Install | brew install --formula ollama | brew install --cask ollama-app | brew install --cask ollama-binary |
| Homebrew's description | Create, run, and share large language models (LLMs) | Get up and running with large language models locally | Get up and running with large language models locally |
| What you get | The ollama command and a Homebrew service that runs ollama serve | Ollama.app in /Applications, with its ollama command linked into Homebrew's bin folder | Only the ollama command, linked into Homebrew's bin folder |
| Licence in Homebrew's data | MIT | Homebrew casks carry no licence field | Homebrew casks carry no licence field |
| macOS | No requirement listed | 14 or later | 14 or later |
| Starts at login | After brew services start ollama | Ollama's FAQ says the app registers as a login item when installed | Nothing in Homebrew's data starts it |
| Updates | brew upgrade ollama | Homebrew marks the cask as updating itself | Homebrew does not mark it as updating itself |
| Conflicts Homebrew lists | None listed | Cask ollama-binary | Cask ollama-app |
Homebrew's install command takes a formula or a cask, and its options include --formula and --cask to treat every name you give as one or the other. Homebrew's data lists ollama among the old names of the cask ollama-app, so that cask was once named ollama.
brew services start ollama starts the service now and registers it to launch at login.brew services run ollama runs it without registering it to launch at login.brew services stop ollama stops it and unregisters it from launching at login, unless you pass --keep.Those three descriptions are Homebrew's. Homebrew's formula data gives the service's command as ollama serve with a keep alive of always, sets OLLAMA_FLASH_ATTENTION to 1 and OLLAMA_KV_CACHE_TYPE to q8_0, and writes its log to var/log/ollama.log under Homebrew's prefix.
Ollama's FAQ says that when Ollama runs as a macOS application you set environment variables with launchctl setenv. For a Homebrew service, Homebrew says you add or override a variable by creating ~/.homebrew/services/ollama.env, one KEY=value per line, and that the change takes effect on the next brew services restart.
brew upgrade upgrades outdated, unpinned packages, and brew uninstall ollama removes the formula.brew uninstall --cask ollama-app or brew uninstall --cask ollama-binary removes that cask. Ollama's FAQ says the Mac app downloads its own updates and applies them when you choose Restart to update.--zap removes all files associated with a cask and may remove files shared between applications. The zap list of each of the two casks includes ~/.ollama, where Ollama's macOS page says models and configuration are kept. Look in that folder before you zap.For uninstalling the app by hand, see Stop, update or remove Ollama on a Mac. It covers the app and not a Homebrew install.
brew install ollama picks, whether the formula installs beside a cask, or whether the formula or ollama-binary keeps its models in ~/.ollama/models, the one macOS location Ollama's FAQ names.| Claim | Source |
|---|---|
| The formula: description, MIT licence, the service and its environment variables, its log | Homebrew, formula ollama (JSON) |
| The cask ollama-app: description, old name, macOS 14, the linked binary, updates itself, the conflict, the zap list | Homebrew, cask ollama-app (JSON) |
| The cask ollama-binary: description, macOS 14, only the linked binary, no self-update mark, the conflict, the zap list | Homebrew, cask ollama-binary (JSON) |
brew services, --formula, --cask, --zap, brew upgrade, the service .env file | Homebrew manpage |
| The app registers as a login item; automatic updates; the default K/V cache type is f16 | Ollama docs, Local FAQ |
The DMG is the preferred install; ~/.ollama holds models and configuration | Ollama docs, macOS |
| The README links the Homebrew formula under package managers | Ollama README |
ollama, which comes with a service, the cask ollama-app, which installs the Mac app, and the cask ollama-binary, which links only the command. Use --formula or --cask to say which you mean.brew services start ollama starts the service and registers it to launch at login, says Homebrew. The Mac app registers itself as a login item, says Ollama's FAQ.~/.homebrew/services/ollama.env with one KEY=value per line and run brew services restart ollama; the change takes effect on that restart.--zap removes all files associated with a cask and may remove files shared between applications. The zap lists of ollama-app and ollama-binary both include ~/.ollama, where Ollama's macOS page says models are kept.