| Port details on branch 2026Q3 |
- ollama Run Llama 2, Mistral, and other large language models
- 0.31.1_3 misc
=0 0.31.1_3Version of this port present on the latest quarterly branch. - Maintainer: yuri@FreeBSD.org
 - Port Added: 2026-07-10 08:24:41
- Last Update: 2026-08-19 17:40:44
- Commit Hash: 039eec1
- 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
- Run generative models that generate images
 ¦ ¦ ¦ ¦ 
- 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:
-
- 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.
- ONLY_FOR_ARCHS: amd64
- distinfo:
- TIMESTAMP = 1782972753
SHA256 (go/misc_ollama/ollama-v0.31.1/b9840.tar.gz) = 6a786175a32873ec25ef66be623fca5d74636cf5128574e1caf6f1e13f43780d
SIZE (go/misc_ollama/ollama-v0.31.1/b9840.tar.gz) = 35092219
No package information for this port in our database- Sometimes this happens. Not all ports have packages. Perhaps there is a build error. Check the fallout link:

- 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
- SPIRV-HeadersConfig.cmake : graphics/spirv-headers
- cmake : devel/cmake-core
- go126 : lang/go126
- pkgconf>=1.3.0_1 : devel/pkgconf
- Library dependencies:
-
- libopenblas.so : math/openblas
- libvulkan.so : graphics/vulkan-loader
- Fetch dependencies:
-
- go126 : lang/go126
- There are no ports dependent upon this port
Configuration Options:
- ===> The following configuration options are available for ollama-0.31.1_3:
====> 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.26+,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. start ollama service with 'sudo service ollama start'
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. start ollama service with 'sudo service ollama start'
or
setup and start the service 'ollama'
2. run:
ollama run x/z-image-turbo {textual description of the desired image}
Please note that the x/z-image-turbo model requires a minimum of 64GB of
RAM to run or a similar amount of VRAM on a Vulkan device.
There are also a lot of text-to-text models that you can chat with.
You might also want to install the 'gollama' package. gollama allows to
run ollama models very easily.
- Master Sites:
|
| Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
| Commit | Credits | Log message |
0.31.1_3 19 Aug 2026 17:40:44
    |
Dag-Erling Smørgrav (des)  |
various: Bump go ports for go-1.25.14 / 1.26.7 |
0.31.1_2 14 Aug 2026 00:43:14
    |
Dag-Erling Smørgrav (des)  |
various: Bump go ports for go-1.25.13 / 1.26.6 |
0.31.1_1 19 Jul 2026 06:12:32
    |
Yuri Victorovich (yuri)  |
misc/ollama: Only for amd64 for now
(cherry picked from commit d67b93111001df9d39bfc16dc922a32c1eb74eea) |
0.31.1_1 10 Jul 2026 08:00:52
    |
Dag-Erling Smørgrav (des)  |
various: Bump go ports for go-1.25.12 / 1.26.5 |