RUNLOCALAIv38
->Will it run?Best GPUCompareTroubleshootStartLearnPulseModelsHardwareToolsBench
Run check
RUNLOCALAI

Independently operated catalog for local-AI hardware and software. Hand-written verdicts. Source-cited claims. Reproducible commands when we have them.

OP·Eruo Fredoline
DIR
  • Models
  • Hardware
  • Tools
  • Benchmarks
TOOLS
  • Will it run?
  • Compare hardware
  • Cost vs cloud
  • Choose my GPU
  • Prompting kits
  • Quick answers
REF
  • All buyer guides
  • Learn local AI
  • Methodology
  • Glossary
  • Errors KB
  • Trust
EDITOR
  • About
  • Author
  • How we make money
  • Editorial policy
  • Contact
LEGAL
  • Privacy
  • Terms
  • Sitemap
MAIL · MONTHLY DIGEST
Get monthly local AI changes
Monthly recap. No spam.
DISCLOSURE

Some links on this site are affiliate links (Amazon Associates and other first-class retailers). When you buy through them, we earn a small commission at no extra cost to you. Affiliate links do not influence our verdicts — there are cards we rate highly that we don't have affiliate relationships with, and cards that sell well that we refuse to recommend. Read more →

© 2026 runlocalai.coIndependently operated
RUNLOCALAI · v38
  1. >
  2. Home
  3. /Learn
  4. /Courses
  5. /Ollama — Installation to Mastery
  6. /Ch. 2
Ollama — Installation to Mastery

02. Installation by OS

Chapter 2 of 20 · 20 min
KEY INSIGHT

Ollama installs differently on each OS but exposes the same API on port 11434-know your install location and service management approach.

Installation methods differ by operating system. The core binary is the same-differences arise in how the service runs and where data gets stored.

Linux

The install script is the fastest method:

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

This installs the ollama binary to /usr/local/bin/ and creates a systemd service that starts on boot. If you prefer manual installation:

sudo mv ollama /usr/local/bin/
sudo useradd -r -s /usr/bin/nologin -d /nonexistent ollama
sudo mkdir -p /etc/systemd/system/ollama.service.d

The service configuration sets OLLAMA_HOST=127.0.0.1 by default, binding to localhost only.

macOS

Download the app from ollama.com/download or install via Homebrew:

brew install ollama

Ollama starts automatically on login as a menu bar application. The socket is at /var/run/ollama.sock. You can disable auto-start with:

brew services stop ollama

Windows

Download the installer from ollama.com. The installer adds Ollama to your PATH and registers a Windows service that runs in the background. Models are stored in %USERPROFILE%\\.ollama\\models.

To verify installation in PowerShell:

ollama --version
Get-Service ollama

Verification

After installation, start the server explicitly and check the API:

# Linux/macOS - start server in background
ollama serve &
sleep 2
curl http://localhost:11434/api/tags

# Windows - service should already be running
Invoke-RestMethod -Uri http://localhost:11434/api/tags

A common failure on Linux is installing without systemd support, then wondering why the server does not persist after closing the terminal. The install script handles this, but manual installs require you to either run ollama serve in a screen session or set up the service manually.

Local verification checkpoint

Run the smallest example from this chapter in a local workspace and record the package version, runtime, data path, and observed output. If the result depends on model size, vector count, CPU/GPU backend, or available memory, note that constraint beside the exercise so the lesson remains reproducible.

EXERCISE

Identify where your Ollama models are stored by running ollama show llama3.2:3b --json (or any installed model) and checking the model field in the JSON output. Compare this path to your home directory structure.

← Chapter 1
What is Ollama?
Chapter 3 →
First Model