Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 920301 - Request for Ollama Utility
Summary: Request for Ollama Utility
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Paul Zander
URL: https://ollama.ai/install.sh
Whiteboard:
Keywords:
Depends on: 946268
Blocks:
  Show dependency tree
 
Reported: 2023-12-19 05:07 UTC by Neko-san
Modified: 2025-03-03 16:59 UTC (History)
9 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Neko-san 2023-12-19 05:07:02 UTC
I would like to request ollama as a package.
https://github.com/jmorganca/ollama

Upstream's method of installation currently only includes systemd services in addition to installing the program into `/usr/bin` and I'm not exactly a fan of scripts side-stepping package managers by throwing files in system directories.

Additionally, though not technically relevant, Arch has ollama in their repo (https://archlinux.org/packages/extra/x86_64/ollama) and it would be neat if we could have it over here in OpenRC Gentoo-land
Comment 1 Alfred Wingate 2023-12-19 05:27:20 UTC
> Upstream's method of installation currently only includes systemd services

This appears to be wrong, upstream only has a Dockerfile which they expect you to use, arch made their own systemd service for it which can be used on Gentoo (in addition to the service script that has to be made).

https://gitlab.archlinux.org/archlinux/packaging/packages/ollama/-/blob/main/ollama.service?ref_type=heads
Comment 2 Neko-san 2023-12-19 05:48:44 UTC
It's in the install script in the URL above
https://ollama.ai/install.sh
Comment 3 Eugene Bright 2024-01-20 16:14:35 UTC
There is a manual installation instruction for precompiled one-file binary
https://github.com/jmorganca/ollama/blob/main/docs/linux.md
Comment 4 Michael 2024-05-23 16:00:00 UTC
Hey guys! 
There is still no ollama package in the official gentoo repository, so I spent some time composing an rebuild for `ollama-bin`, you can find it in my overlay on my github: grouzen/lamdness-overlay (can't post the actual link due to the policy of the forum). It works well with OpenRC. I have not checked it with systemd since I'm not using it.
Comment 5 Eugene Bright 2024-05-23 16:04:44 UTC
@Michael
If you have time, please create a PR
https://github.com/gentoo/gentoo

Share the link here
Comment 6 Eugene Bright 2024-06-26 15:43:26 UTC
dev-ml/ollama-9999::guru
https://github.com/gentoo/guru/blob/master/dev-ml/ollama/ollama-9999.ebuild
Comment 7 Neko-san 2025-01-16 02:34:59 UTC
Is there some reason why it won't honor Mesa's OpenCL and requires it from a separate package? (And consequently disabling Mesa's?)
https://imgur.com/a/Z1UggdT
Comment 8 Larry the Git Cow gentoo-dev 2025-02-09 10:28:08 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ee54de8ccc9acd462f837185e28ec624553d2a95

commit ee54de8ccc9acd462f837185e28ec624553d2a95
Author:     Paul Zander <negril.nx+gentoo@gmail.com>
AuthorDate: 2025-02-08 19:30:07 +0000
Commit:     Paul Zander <negril.nx+gentoo@gmail.com>
CommitDate: 2025-02-08 21:42:29 +0000

    app-misc/ollama: update 9999
    
    Closes: https://bugs.gentoo.org/948424
    Closes: https://bugs.gentoo.org/935842
    Closes: https://bugs.gentoo.org/920301
    Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>

 .../ollama/files/ollama-9999-include-cstdint.patch |  21 ++
 app-misc/ollama/metadata.xml                       |   1 +
 app-misc/ollama/ollama-9999.ebuild                 | 293 ++++++++++++++++-----
 3 files changed, 254 insertions(+), 61 deletions(-)

https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0e23d436589a5ed76dd10ff0e35964f691b809c7

commit 0e23d436589a5ed76dd10ff0e35964f691b809c7
Author:     Paul Zander <negril.nx+gentoo@gmail.com>
AuthorDate: 2025-02-08 19:29:18 +0000
Commit:     Paul Zander <negril.nx+gentoo@gmail.com>
CommitDate: 2025-02-08 21:42:29 +0000

    app-misc/ollama: update to 0.5.7-r1
    
    Bug: https://bugs.gentoo.org/948424
    Bug: https://bugs.gentoo.org/935842
    Closes: https://bugs.gentoo.org/920301
    Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>

 .../files/ollama-0.5.7-include-cstdint.patch       |  24 +++
 app-misc/ollama/files/{ollama => ollama.init}      |   2 +
 app-misc/ollama/metadata.xml                       |   1 +
 app-misc/ollama/ollama-0.5.7-r1.ebuild             | 176 +++++++++++++++++++++
 app-misc/ollama/ollama-0.5.7.ebuild                | 115 --------------
 5 files changed, 203 insertions(+), 115 deletions(-)
Comment 9 perestoronin 2025-03-03 16:59:21 UTC
Please update to new 0.5.12 release.