The preferred method of installation is to mount the ollama.dmg
and drag-and-drop the Ollama application to the system-wide Applications
folder. Upon startup, the Ollama app will verify the ollama
CLI is present in your PATH, and if not detected, will prompt for permission to create a link in /usr/local/bin
Once you've installed Ollama, you'll need additional space for storing the Large Language models, which can be tens to hundreds of GB in size. If your home directory doesn't have enough space, you can change where the binaries are installed, and where the models are stored.
To install the Ollama application somewhere other than Applications
, place the Ollama application in the desired location, and ensure the CLI Ollama.app/Contents/Resources/ollama
or a sym-link to the CLI can be found in your path. Upon first start decline the "Move to Applications?" request.
Ollama on MacOS stores files in a few different locations.
~/.ollama
contains models and configuration~/.ollama/logs
contains logs
<install location>/Ollama.app/Contents/Resources/ollama
the CLI binaryTo fully remove Ollama from your system, remove the following files and folders:
sudo rm -rf /Applications/Ollama.app
sudo rm /usr/local/bin/ollama
rm -rf "~/Library/Application Support/Ollama"
rm -rf "~/Library/Saved Application State/com.electron.ollama.savedState"
rm -rf ~/Library/Caches/com.electron.ollama/
rm -rf ~/Library/Caches/ollama
rm -rf ~/Library/WebKit/com.electron.ollama
rm -rf ~/.ollama
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。