Module 4: Ollama - Introduction

Installing the Ollama CLI

Overview

You'll install the Ollama CLI on your operating system. A simple, fast process.

Time: 15 minutes
Difficulty: Low


🎯 Objectives

  • ✅ Install the Ollama CLI
  • ✅ Verify the installation
  • ✅ First command

📥 Installation by OS

macOS:

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

Or with Homebrew:

brew install ollama

Linux:

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

Windows:

  1. Download: https://ollama.com/download/windows
  2. Run OllamaSetup.exe
  3. Follow the wizard

✅ Verification

ollama --version

Expected output:

ollama version 0.1.23

🚀 First Command

ollama help

Main commands:

  • pull - Download a model
  • run - Run a model
  • list - List models
  • rm - Remove a model
  • serve - Start the API server

🐛 Troubleshooting

Error: Command not found

macOS/Linux:

export PATH=$PATH:/usr/local/bin

Windows: Restart the terminal


Error: Permission denied

sudo ollama --version

✅ Summary

  • Ollama installed in <5 min
  • CLI available globally
  • Ready to download models

Next: 03-model-management.md

You'll learn commands to manage models.

Time: 20 min