https://github.com/lingfish/ollama-deb
Build a Debian ollama package
https://github.com/lingfish/ollama-deb
deb debian llm ollama
Last synced: about 1 month ago
JSON representation
Build a Debian ollama package
- Host: GitHub
- URL: https://github.com/lingfish/ollama-deb
- Owner: lingfish
- License: apache-2.0
- Created: 2024-10-27T03:04:52.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2026-04-04T05:46:43.000Z (3 months ago)
- Last Synced: 2026-04-04T07:23:51.337Z (3 months ago)
- Topics: deb, debian, llm, ollama
- Language: HTML
- Homepage:
- Size: 1.97 MB
- Stars: 16
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# ollama-deb
> [!NOTE]
> ### Breaking repo changes!
> Whilst things were broken with the repo, I took the time to change some things:
> - You will need to update your `sources.list` to change from `main` to `non-free`.
> - `rc` builds are now in their own component too, so there's no need anymore for previous `apt` pinning 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 `rc` packages.
> - Packages aren't uploaded to GitHub releases anymore, due to their size.
>
> Please see the [doco site](https://lingfish.github.io/ollama-deb/) for updated info.
>
> The plan is to eventually get this repo into [extrepo](https://salsa.debian.org/extrepo-team/extrepo-data) for easier
> installation.

This is a GitHub workflow to build Debian packages of [ollama](https://github.com/ollama/ollama/) based on tags.
It installs the same files as the binary tarballs that you can download from
[their releases page](https://github.com/ollama/ollama/releases), 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](CHANGELOG.md) is maintained tracking packaging changes.
## Usage
### Use my APT repo
[Click here](https://lingfish.github.io/ollama-deb/) 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.
### Manual deb file install
Head over to the [releases page](https://github.com/lingfish/ollama-deb/releases) 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:
```shell
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.
