Note
Whilst things were broken with the repo, I took the time to change some things:
- You will need to update your
sources.listto change frommaintonon-free. rcbuilds are now in their own component too, so there's no need anymore for previousaptpinning instructions (feel free, and I recommend, removing the pin file if you previously had one).- I will only be hosting the latest versions of released and
rcpackages. - Packages aren't uploaded to GitHub releases anymore, due to their size.
Please see the doco site for updated info.
The plan is to eventually get this repo into extrepo for easier installation.
This is a GitHub workflow to build Debian packages of ollama based on tags.
It installs the same files as the binary tarballs that you can download from their releases page, plus more.
It will also install, enable and start a service (systemd on systemd systems, init.d on sysvinit/OpenRC), as well as add a system user to run ollama. It also adds the source documentation.
amd64 and arm64 architectures are packaged.
A CHANGELOG is maintained tracking packaging changes.
Click here to get instructions on repo usage.
NOTE: the sources.list codename has changed from Debian distro names (like bookworm) to stable. Ollama themselves
don't specify what releases/distros they support, so I've changed to using an agnostic one too. bookworm will remain for
a while, and then be removed.
Head over to the releases page to download.
The package depends on sysuser-helper, so either install that first, or install these release packages, and then run
apt-get -f install.
Alternatively, more recent versions of apt can handle .deb file installation, plus dependency
handling -- the magic trick is to put a path in front of the filename:
host [01:34 PM] [j:0] /tmp # apt install ./ollama_0.3.14_amd64.deb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'ollama' instead of './ollama_0.3.14_amd64.deb'
The following additional packages will be installed:
sysuser-helper
The following NEW packages will be installed:
ollama sysuser-helper
0 upgraded, 2 newly installed, 0 to remove and 164 not upgraded.
Need to get 4,176 B/1,448 MB of archives.
After this operation, 2,014 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://deb.debian.org/debian bookworm/main amd64 sysuser-helper all 1.3.9+really1.4.3 [4,176 B]
Get:2 /tmp/ollama_0.3.14_amd64.deb ollama amd64 0.3.14 [1,448 MB]
Fetched 4,176 B in 4s (1,074 B/s)
Selecting previously unselected package sysuser-helper.
(Reading database ... 423601 files and directories currently installed.)
Preparing to unpack .../sysuser-helper_1.3.9+really1.4.3_all.deb ...
Unpacking sysuser-helper (1.3.9+really1.4.3) ...
Selecting previously unselected package ollama.
Preparing to unpack /tmp/ollama_0.3.14_amd64.deb ...
Unpacking ollama (0.3.14) ...
Setting up sysuser-helper (1.3.9+really1.4.3) ...
Setting up ollama (0.3.14) ...
Created symlink /etc/systemd/system/default.target.wants/ollama.service → /lib/systemd/system/ollama.service.
Processing triggers for libc-bin (2.36-9+deb12u7) ...The shared libraries that the ollama team put into their binary tarballs are now split into their own package.
