Skip to main content

Guides

How to Install and Update Ollama on Windows, Mac and Linux

Install Ollama, run a downloaded model by name, and check it with ollama ps in a second terminal. If the command is missing, check the installation path.

By Updated 13 min read

Ollama runs downloaded AI models on your computer. Its Windows and macOS apps include a chat window with buttons and menus, plus commands and a local API. The local API lets other apps or tools on your computer use Ollama so that you can integrate it beyond the Ollama chat app. Install the app, download one small model, and get a short chat working before adding other programs.

The fastest beginner path is:

  1. Install Ollama for your operating system.
  2. Open Terminal, PowerShell, or Command Prompt.
  3. Run a small starter model.
  4. Confirm that Ollama responds locally.
  5. Only then move to larger models, Open WebUI, document chat, or custom integrations.

Before you install Ollama

Choose your OS below. Have about 1.4 GB of disk space for the first qwen3:1.7b download, plus space for the app and temporary files. On an 8 GiB machine, use 2,048 context tokens for this example.

Install Ollama on Mac

Ollama currently requires macOS Sonoma (14) or newer. It supports Apple M-series chips with CPU and GPU use; on an Intel Mac, Ollama uses the CPU. Check the Apple menu → About This Mac before downloading.

1. Download Ollama

Go to the official Ollama download page and choose the macOS download. Open ollama.dmg, drag Ollama into Applications, and launch it. The ollama command line comes with the app. At startup, the app checks that ollama is on your PATH, and it may ask permission to add it; accept that prompt if you want to use the terminal steps below.

2. Open the app

Keep Ollama open while you run the first model. If macOS asks for permission to open the app, follow the normal macOS security prompt.

3. Open Terminal

After the app is installed and running, open Terminal. The command line is where you will run your first model.

4. Check that the command works

Run:

ollama --version

If the command returns a version, the command line is available.

If the command is not found, quit and reopen Terminal. If it still fails, reopen Ollama and check whether its command-line prompt was completed. Ollama's macOS instructions describe that link and where the CLI lives inside the app.

5. Run a small first model

Run a small model first. Then follow Check the installation.

Update Ollama

On Windows and macOS, Ollama downloads app updates automatically. Ollama's documentation does not describe a command-line update for the Windows or macOS app. Use Restart to update from its taskbar or menu-bar item to apply a pending update, or download the current installer from the official download page.

On Linux, you can update Ollama from the command line. If you used Ollama's upstream installer, run it again in a Linux terminal:

curl -fsSL https://ollama.com/install.sh | sh

If your distribution's package manager installed Ollama, use that package manager's update process instead. Do not overwrite a package-managed installation with the upstream installer.

Check the installed app version with ollama --version. If an already running server still reports the old version, restart the existing service or app using the same startup method, then check again. On a systemd installation, use sudo systemctl restart ollama. For a deliberately manual server, stop that server before starting it again with ollama serve. Do not start a second server on the same port.

Updating Ollama does not update every downloaded model. To refresh a model, run ollama pull followed by the exact model tag you use, such as ollama pull qwen3:1.7b. Routine updates do not require deleting your models or configuration.

Ollama 0.40.18 (November 24) updates its bundled llama.cpp build to b12651, which removes JetPack 5 support. Check the installed JetPack version before updating an existing Jetson installation. Release notes.

For a manual Linux installation, use the official architecture-specific ollama-linux-amd64.tar.zst or ollama-linux-arm64.tar.zst archive and the separately supplied ROCm package when applicable. The official installation script can also be rerun for updates. Preserve the model store unless you deliberately intend to remove downloaded models during an uninstall. Follow the Linux installation documentation for extraction and service paths.

Do you need Docker for Ollama?

Most beginners don't need Docker to install and use Ollama.

Use the normal app or OS install path first. Consider Docker only if:

  • you already use Docker;
  • you want an isolated deployment;
  • you are following a specific Open WebUI setup that expects containers;
  • you are deploying on a server;
  • you need repeatable infrastructure rather than a normal desktop install.

For your first local model, Docker is an unnecessary complication.

Where Ollama stores files

Ollama Settings window (macOS)

Ollama's Settings window on macOS. Model location changes where downloaded models are stored, and Context length sets how much conversation the model can use. Screenshot from Ollama's documentation, MIT licence.

Model storage matters because the app is small, but the models are not.

ItemWindows location from Ollama docsMac/Linux practical note
Logs and updates%LOCALAPPDATA%\OllamaCheck official docs for current paths
Binaries%LOCALAPPDATA%\Programs\OllamaApp or binary path depends on install method
Models%USERPROFILE%\.ollama\models by defaultmacOS: ~/.ollama/models; normal Linux service: /usr/share/ollama/.ollama/models
Temporary files%TEMP% with ollama* foldersTemporary paths vary

If your system drive is small, free up storage before downloading several models.

How to move Ollama models to another drive on Windows

Ollama’s Windows documentation says you can change the model location by setting the OLLAMA_MODELS environment variable for your user account.

Beginner-safe outline:

  1. Create a folder on the target drive, such as D:\OllamaModels.
  2. Open Windows Settings or Control Panel.
  3. Search for environment variables.
  4. Edit environment variables for your user account.
  5. Create or edit OLLAMA_MODELS.
  6. Set it to the folder where you want downloaded models stored.
  7. Quit the Ollama tray app.
  8. Relaunch Ollama from the Start menu.
  9. Open a new terminal and run a small model.

If models already exist, the variable does not move them. Follow the complete storage-move guide to copy the model store while Ollama is stopped, check the new location, and reopen a working chat before removing the old copy.

Check the installation

Run ollama run qwen3:1.7b. In chat set /set parameter num_ctx 2048 for the 8 GiB example. With more memory, use /set parameter num_ctx 4096 only after checking that budget. Ask for the time in ‘Meet at 10:30’. Expect 10:30. While it is loaded, run ollama ps in another terminal to inspect CONTEXT and PROCESSOR. Leave with /bye. To reopen, run ollama run qwen3:1.7b again and repeat the same context setting above before repeating the question.

Set the context length yourself rather than relying on Ollama's default: Ollama's context-length page lists 4k below 24 GiB of VRAM, 32k for 24 to 48 GiB and 256k at 48 GiB or more, while its FAQ says 4096.

On the 8 GiB example, start at 2,048 tokens. The 8 GB guide shows the memory budget; 2,048 tokens leaves the most room. Run ollama list to see the models already on your computer, and browse ollama.com/library for others. gemma3:4b is a larger download; try it after the 1.7B model works if you have 16 GB of RAM.

$ ollama --version
ollama version is your version number
$ ollama list
NAME    ID    SIZE    MODIFIED
$ ollama run qwen3:1.7b
pulling manifest
download progress for each file
verifying sha256 digest
writing manifest
success
>>> Send a message (/? for help)

This is the text Ollama prints for these commands, taken from Ollama's own source code. Your version number and download progress lines will differ, and ollama list shows your downloaded models under its headings. The >>> prompt means the model has loaded and is waiting for your message.

Common Ollama install problems

For a missing command, use Ollama command-not-found checks. For a missing or interrupted model download, use model download troubleshooting. If a model download fails or is interrupted, run the same ollama pull command again. If it restarts from zero, check your free disk space and any proxy setting. The ollama list command lists local models; it does not inspect partial downloads. For the starter model in this guide, retry ollama pull qwen3:1.7b and wait for it to finish. Then use ollama list to check that the model is available locally. If the model is present but will not answer, use Ollama model-load troubleshooting. If a chat works but runs on the CPU when you expected a GPU, use GPU detection checks. These paths begin with the observed failure instead of asking you to reinstall everything.

ProblemLikely causeFix
ollama command not recognizedTerminal was opened before install, PATH not refreshed, or app not launchedClose and reopen the terminal; relaunch Ollama; check the official install notes
Windows install uses the wrong driveDefault home-directory install pathRun the installer with the /DIR flag, for example OllamaSetup.exe /DIR="d:\some\location". It does not need Administrator rights. To move downloaded models instead, set OLLAMA_MODELS (see below).
Models fill the C driveDownloaded models are much larger than the appSet OLLAMA_MODELS before building a model library
First run takes a long timeModel download is happening before inferenceWait for the download; start with a small model
Responses are painfully slowModel is too large, CPU-only fallback, not enough memory, or long contextTry a smaller model and close other memory-heavy apps
Progress symbols look strange on Windows 10Terminal font may not render Ollama progress characters correctlyChange terminal font settings
Local API does not respondOllama background process is not runningStart Ollama, then retry localhost:11434
Open WebUI cannot see OllamaContainer/networking issue or Ollama not reachable from the interfaceFinish this install first, then use the Open WebUI with Ollama guide
User assumes it is fully privateLocal model execution is only one part of the workflowAvoid cloud-connected features

Privacy notes for Ollama

The local API is served from your own machine. Downloading models, updating the app, hosted cloud models, web search, third-party tools, an exposed server, tunnels and cloud-connected interfaces all use the network.

Since Ollama 0.32, typing ollama with no model name opens Ollama's own start screen instead of help text: an agent at first, and a welcome launcher from 0.40.15. The 0.32 release notes show a cloud-tagged model (glm-5.2:cloud) on that screen,. For local-only chat, use ollama run qwen3:1.7b (or another model you downloaded). To turn Ollama's cloud features off, set OLLAMA_NO_CLOUD=1; the offline guide shows how on each system.

Do not expose localhost:11434 to the public internet.

Want to access the same model in a browser? Confirm your tag appears in ollama list, then open the Open WebUI connection guide. Want a visual download browser and loading controls instead? Open the LM Studio setup guide.

Sources

Sources reviewed for this page: