ollama

Unofficial Debian package repository documentation

Note: This repo currently only supports Debian bookworm.

Repository setup

Run the following comands to setup the repo:

## Add GPG key
curl https://raw.githubusercontent.com/lingfish/ollama-deb/refs/heads/main/repository-key.asc | sudo gpg -o /etc/apt/keyrings/ollama-repo.gpg --dearmor

## Add repository
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/ollama-repo.gpg] https://ollama-repo.jason-9eb.workers.dev/apt bookworm main" | sudo tee /etc/apt/sources.list.d/ollama.list

## Update package lists
sudo apt update

I realise that the repo URL looks weird. See here for details. This URL is pointing to a Cloudflare worker. I do this in my free time, and I'm not willing to pay for any hosting of the (abnormally-large) package files.

Package installation

Install packages directly from the repository:

sudo apt install ollama
Note: The first GPU package that this ollama package recommends is libollama-nvidia, and so if none are requested, this will be installed by default. If you don't need any, remove it afterwards, or add --no-install-recommends to your apt command.

To use a GPU, you'll also need one of the following packages, depending on your GPU make: