# Install ollama with Homebrew, apk, dnf, MacPorts, Nix, pacman, zypper, chocolatey, scoop, winget

Create, run, and share large language models (LLMs). Version 0.32.3 via Homebrew; verified 2026-07-23. Also installable with nix: nix profile install nixpkgs#ollama.

## Install

```sh
sudo av install brew:ollama
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install ollama
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ollama
```

  Evidence: MacPorts ports tree: llm/ollama/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add ollama
```

  Evidence: Alpine Linux edge package indexes: ollama from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install ollama
```

  Evidence: Fedora Rawhide package metadata: ollama from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#ollama
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ol/ollama/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S ollama
```

  Evidence: Arch Linux sync databases: ollama from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install ollama
```

  Evidence: openSUSE Tumbleweed package metadata: ollama from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install Ollama
```

  Evidence: Chocolatey community package catalog: Ollama from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','office365homepremium'

- Scoop (92%):

```sh
scoop install main/ollama
```

  Evidence: Scoop official bucket manifest trees: bucket/ollama.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id Ollama.Ollama -e
```

  Evidence: Windows Package Manager source index: Ollama.Ollama from https://cdn.winget.microsoft.com/cache/source.msix

## Package facts

- **Package key:** brew:ollama
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/ollama>
- **Version:** 0.32.3
- **Source summary:** Create, run, and share large language models (LLMs)
- **Homepage:** <https://ollama.com/>
- **Repository:** <https://github.com/ollama/ollama>
- **Upstream docs:** <https://docs.ollama.com/>
- **License:** MIT
- **Source archive:** <https://github.com/ollama/ollama.git>
- **Last updated:** 2026-07-23T20:22:35Z
- **Generated:** 2026-07-25T07:20:51+00:00

## Executables

- ollama (cli)
- ollama (alias)

## Dependencies

- mlx-c

## Build dependencies

- ccache
- cmake
- go

## Install behavior

- Post-install hook: not defined
- Service: declared
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-25
- Package-manager version: 0.32.3
- Package-manager updated: 2026-07-23
- Local data: ok
- Upstream repository: https://github.com/ollama/ollama
- info: No cached GitHub release or tag data was available.
## Project history and usage

Ollama is a local model runner, model-management CLI, desktop app, and HTTP API for open-weight language models. It packages the tasks of downloading model artifacts, running inference, serving localhost APIs, creating Modelfile-based variants, and integrating with applications into one developer-facing tool.

### Project history

The ollama/ollama repository was created on 2023-06-26, during the fast expansion of open-weight LLM releases after LLaMA-family models made local inference a mainstream developer activity. Written primarily in Go and licensed under MIT, the project made the single command pattern, such as ollama run model-name, central to its identity.

Ollama expanded from a terminal-first model runner into a broader local-AI substrate. Official docs expose a localhost API at port 11434, document generation, chat, embeddings, model pulling, pushing, and listing, and point developers to official Python and JavaScript libraries.

### Adoption history

Ollama's adoption grew with developers' desire to run models without sending prompts, code, or data to hosted APIs. Its model library made open models discoverable by name and tag, while the CLI hid much of the friction around quantized model files, runtime setup, and GPU/CPU execution details.

By 2026-07-01, GitHub repository metadata reported 175,249 stars and 16,789 forks, making Ollama one of the most visible packages in the local-AI tooling wave. The official model library displays pull counts for individual models, and external developer docs such as GitLab's local-model guidance use Ollama as a practical way to serve supported LLMs for development.

### How it is used

Developers use Ollama to pull and run models such as Llama, Gemma, Qwen, Mistral, DeepSeek, and embedding models; expose them to apps through the REST API; prototype agents and chat tools; and keep code or private documents on local hardware. The API is simple enough to call with curl and broad enough to support libraries, web UIs, IDE integrations, and agent tools.

The package also matters for model packaging. An Ollama model is not only weights: it can include a name, tag, quantization choice, prompt template, parameters, and Modelfile instructions. That makes the package feel closer to Docker-style model distribution than to a bare inference binary.

### Why package nerds care

Ollama is significant because it moved local LLMs from specialist inference stacks into normal package-manager territory. Homebrew, Linux package managers, Windows package managers, Docker, language clients, and an HTTP API all point at the same basic workflow: install one executable, pull a named model, and serve or run it.

### Timeline

- 2023-06-26: The ollama/ollama repository was created on GitHub.
- 2024-01-23: Ollama announced initial Python and JavaScript libraries.
- 2024-09-25: Meta announced Llama 3.2 models, including vision models and small edge-oriented text models.
- 2024-11: Ollama documented Llama 3.2 Vision support in Ollama 0.4, including 11B and 90B variants.
- 2026-07-01: GitHub repository metadata reported 175,249 stars, 16,789 forks, Go as the primary language, and MIT licensing.

### Related projects

- Related projects and ecosystems include llama.cpp, Docker, Open WebUI, LangChain-style application frameworks, Hugging Face model distribution, Ollama's Python and JavaScript libraries, and open model families from Meta, Google, Alibaba/Qwen, Mistral, DeepSeek, and others.

### Sources

- <https://ai.meta.com/blog/llama-3-2-connect-2024-vision-edge-mobile-devices/>
- <https://api.github.com/repos/ollama/ollama>
- <https://docs.gitlab.com/development/ai_features/local_models/>
- <https://docs.ollama.com/api/introduction>
- <https://formulae.brew.sh/formula/ollama>
- <https://github.com/ollama/ollama>
- <https://github.com/ollama/ollama/blob/main/docs/api.md>
- <https://ollama.com/>
- <https://ollama.com/blog/llama3.2-vision>
- <https://ollama.com/blog/python-javascript-libraries>
- <https://ollama.com/library>


## Security Notes

formula declares a Homebrew service.

- **Geiger risk:** orange / medium
- formula declares a Homebrew service

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** ollama
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Nix - ollama: normalized package name match | nixpkgs package indexes: pkgs/by-name/ol/ollama/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - ollama - 0.17.7-r1: normalized package name match | Alpine Linux edge package indexes: ollama from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Download and run large language models locally (CPU) | https://github.com/ollama/ollama
- apk - ollama-doc - 0.17.7-r1: normalized package name match | Alpine Linux edge package indexes: ollama-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Download and run large language models locally (CPU) (documentation) | https://github.com/ollama/ollama
- dnf - ollama - 0.23.4-2.fc45: normalized package name match | Fedora Rawhide package metadata: ollama from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Get up and running with OpenAI gpt-oss, DeepSeek-R1, Gemma 3 and other models | https://github.com/ollama/ollama
- dnf - ollama-base - 0.23.4-2.fc45: normalized package name match | Fedora Rawhide package metadata: ollama-base from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | The base ollama | https://github.com/ollama/ollama
- dnf - ollama-rocm - 0.23.4-2.fc45: normalized package name match | Fedora Rawhide package metadata: ollama-rocm from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | The ROCm backend for ollama | https://github.com/ollama/ollama
- dnf - ollama-vulkan - 0.23.4-2.fc45: normalized package name match | Fedora Rawhide package metadata: ollama-vulkan from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | The Vulkan backend for ollama | https://github.com/ollama/ollama
- pacman - ollama - 0.30.7-1: normalized package name match | Arch Linux sync databases: ollama from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Create, run and share large language models (LLMs) | https://github.com/ollama/ollama
- zypper - ollama - 0.24.0-1.1: normalized package name match | openSUSE Tumbleweed package metadata: ollama from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Tool for running AI models on-premise | https://ollama.com
- zypper - ollama-vulkan - 0.24.0-1.1: normalized package name match | openSUSE Tumbleweed package metadata: ollama-vulkan from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Ollama Module using Vulkan | https://ollama.com
- MacPorts - ollama: normalized package name match | MacPorts ports tree: llm/ollama/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - Ollama: normalized package name match | Chocolatey community package catalog: Ollama from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','office365homepremium'
- Scoop - main/ollama: normalized package name match | Scoop official bucket manifest trees: bucket/ollama.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Ollama.Ollama: normalized package name match | Windows Package Manager source index: Ollama.Ollama from https://cdn.winget.microsoft.com/cache/source.msix


## Related links

- [MCP tool packages](https://www.automicvault.com/pkg/mcp-tools/) - Mentions MCP or Model Context Protocol.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [AI and agent packages](https://www.automicvault.com/pkg/ai-agent-tools/) - Matched AI model, agent, coding-agent, orchestration, or MCP metadata.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [ccache](https://www.automicvault.com/pkg/brew/ccache/) - Build dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [rapid-mlx](https://www.automicvault.com/pkg/brew/rapid-mlx/) - Shares av.db curated category or tags: ai, cli, llm, local-ai, model-tools.
- [apfel](https://www.automicvault.com/pkg/brew/apfel/) - Shares av.db curated category or tags: ai, api, cli, model-tools.
- [cai](https://www.automicvault.com/pkg/brew/cai/) - Shares av.db curated category or tags: ai, cli, llm, model-tools.
- [gollama](https://www.automicvault.com/pkg/brew/gollama/) - Shares av.db curated category or tags: ai, cli, llm, model-tools.
- [kubectl-ai](https://www.automicvault.com/pkg/brew/kubectl-ai/) - Shares av.db curated category or tags: ai, cli, llm, model-tools.
- [llama.cpp](https://www.automicvault.com/pkg/brew/llama-cpp/) - Shares av.db curated category or tags: ai, cli, local-ai, model-tools.
- [llmfit](https://www.automicvault.com/pkg/brew/llmfit/) - Shares av.db curated category or tags: ai, cli, llm, model-tools.
- [localai](https://www.automicvault.com/pkg/brew/localai/) - Shares av.db curated category or tags: ai, cli, llm, model-tools.
- [mlx-lm](https://www.automicvault.com/pkg/brew/mlx-lm/) - Local package facts share a topical domain. Shared terms: ai, cli, language, large, llms.
- [ollama-app](https://www.automicvault.com/pkg/cask/ollama-app/) - Executable or command metadata overlaps with this package. Shared terms: language, large, models, ollama.

## Combined YAML source

View the package source record on GitHub. [combined/ollama.yml](https://github.com/automic-vault/db/blob/main/combined/ollama.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
