| Port details on branch 2026Q2 |
- ollama Run Llama 2, Mistral, and other large language models
- 0.19.0_4 misc
=0 0.19.0_4Version of this port present on the latest quarterly branch. - Maintainer: yuri@FreeBSD.org
 - Port Added: 2026-05-09 18:45:02
- Last Update: 2026-06-03 18:00:48
- Commit Hash: 3d69120
- License: MIT
- WWW:
- https://ollama.com
- https://github.com/ollama/ollama
- Description:
- Ollama is a tool that allows you to get up and running with large language
models locally. It provides a simple command-line interface to run and
manage models, as well as a REST API for programmatic access.
Ollama supports a wide range of models available on ollama.com/library,
including popular models like Llama 3, Gemma, and Mistral. It also
allows you to customize models and create your own.
With Ollama, you can:
- Run large language models on your own machine
- Chat with models in the terminal
- Generate text and embeddings
- Customize models with your own prompts and data
- Expose models through a REST API for use in your applications
 ¦ ¦ ¦ ¦ 
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - USE_RC_SUBR (Service Scripts)
-
- Dependency lines:
-
- Conflicts:
- CONFLICTS_BUILD:
- To install the port:
- cd /usr/ports/misc/ollama/ && make install clean
- To add the package, run one of these commands:
- pkg install misc/ollama
- pkg install ollama
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: ollama
- Flavors: there is no flavor information for this port.
- distinfo:
- TIMESTAMP = 1774897820
SHA256 (go/misc_ollama/ollama-v0.19.0/v0.31.1.tar.gz) = 37e2a585a2bb28bcd3432af1c45d5c1ba8d560704ae285c3f9fd22a041e37004
SIZE (go/misc_ollama/ollama-v0.19.0/v0.31.1.tar.gz) = 4163405
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- bash : shells/bash
- miniaudio.h : audio/miniaudio
- json_fwd.hpp : devel/nlohmann-json
- stb_image.h : devel/stb
- patchelf : sysutils/patchelf
- fmt-config.cmake : devel/libfmt
- glslc : graphics/shaderc
- vulkan.h : graphics/vulkan-headers
- cmake : devel/cmake-core
- go125 : lang/go125
- pkgconf>=1.3.0_1 : devel/pkgconf
- Library dependencies:
-
- libopenblas.so : math/openblas
- libvulkan.so : graphics/vulkan-loader
- Fetch dependencies:
-
- go125 : lang/go125
- There are no ports dependent upon this port
Configuration Options:
- ===> The following configuration options are available for ollama-0.19.0_4:
====> Options available for the group BACKENDS
CPU=on: Build CPU backend shared libraries for various SIMD instruction sets
VULKAN=on: Build Vulkan GPU backend shared library
MLX=on: Build MLX backend for image generation (CPU)
===> Use 'make config' to modify these settings
- Options name:
- misc_ollama
- USES:
- cmake:indirect go:1.24+,modules localbase pkgconfig zip
- pkg-message:
- For install:
- You installed ollama: the AI model runner.
To run ollama, plese open 2 terminals.
1. In the first terminal, please run:
$ ollama serve
2. In the second terminal, please run:
$ ollama run gemma3
or
$ ollama run mistral
This will download and run the specified AI model.
You will be able to interact with it in plain English.
Please see https://ollama.com/library for the list
of all supported models.
The command "ollama list" lists all models downloaded
into your system.
When the model fails to load into your GPU, please use
the provided ollama-limit-gpu-layers script to create
model flavors with different num_gpu parameters.
ollama uses many gigabytes of disk space in your home directory,
because advanced AI models are often very large.
Please symlink ~/.ollama to a large disk if needed.
Working examples:
(1) Coding with the model gpt-oss:20b:
1. run 'OLLAMA_CONTEXT_LENGTH=65536 ollama serve'
or
setup and start the service 'ollama'
2. install claude-code and run:
ANTHROPIC_BASE_URL=http://localhost:11434 \
ANTHROPIC_AUTH_TOKEN=ollama \
ANTHROPIC_MODEL=gpt-oss:20b \
ANTHROPIC_DEFAULT_SONNET_MODEL=gpt-oss:20b \
ANTHROPIC_DEFAULT_OPUS_MODEL=gpt-oss:20b \
ANTHROPIC_DEFAULT_HAIKU_MODEL=gpt-oss:20b \
claude
3. Ask it to write some program.
(2) Image generation with the model x/z-image-turbo:
1. run 'OLLAMA_CONTEXT_LENGTH=65536 ollama serve'
or
setup and start the service 'ollama'
2. install claude-code and run:
ollama run x/z-image-turbo {textual description of the desired image}
There are also a lot of text-to-text models that you can chat with.
- Master Sites:
|