Install this version:
emerge -a =app-misc/ollama-bin-0.1.41
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =app-misc/ollama-bin-0.1.41
Or alternatively:
emerge --autounmask-write -a =app-misc/ollama-bin-0.1.41
# =============================================================================
# File: ${P}.ebuild
# Path: /usr/portage/${PN}
# Source: https://github.com/ollama/ollama.git
# =============================================================================
EAPI=8
inherit systemd
DESCRIPTION="Ollama is a command-line tool for managing and running private LLMs"
HOMEPAGE="https://github.com/ollama/ollama"
ROOT=/
SRC_URI="https://github.com/ollama/ollama/releases/download/v${PV}/ollama-linux-amd64 -> ollama-linux-amd64-${PV}"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND="
acct-user/ollama
acct-group/ollama
"
RDEPEND="${DEPEND}"
src_unpack() {
elog "copying binary"
install -D -m 755 -v "$DISTDIR/ollama-linux-amd64-${PV}" "$WORKDIR/$P/ollama-linux-amd64"
}
src_install() {
elog "installing"
newbin "ollama-linux-amd64" "ollama"
newinitd "${FILESDIR}/ollama.initd" "ollama"
systemd_dounit "${FILESDIR}/ollama.service"
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | ollama-linux-amd64-0.1.41 | 331532408 bytes | https://github.com/ollama/ollama/releases/download/v0.1.41/ollama-linux-amd64 |