[GH-ISSUE #7381] Unrooted Termux install process #4691

Open
opened 2026-04-12 15:37:10 -05:00 by GiteaMirror · 5 comments
Owner

Originally created by @b9Joker108 on GitHub (Oct 27, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/7381

What is the issue?

I am endeavouring to set up an ollama server on my unrooted Termux host environment, please refer:

https://github.com/ollama/ollama/issues/7349#issuecomment-2439776813

and

https://github.com/ollama/ollama/issues/7292#issuecomment-2439781839

@vpnry @dhiltgen So, the process is:

Process

  1. git clone --depth 1 https://github.com/ollama/ollama.git

  2. cd ollama

  3. go generate ./...

  4. delete the two lines of code, as per:

https://github.com/ollama/ollama/issues/7292#issuecomment-2427773036

  1. and write.

  2. go build .

  3. ./ollama serve &

  4. and prosper!

Is that the go?

Device details:

❯ termux-info
Termux Variables:
TERMUX_API_VERSION=0.50.1
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=3465
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.1
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://packages-cf.termux.dev/apt/termux-main stable main
# sources.list.d/pointless.list
deb https://its-pointless.github.io/files/21 termux extras
# sources.list.d/ivam3-termux-packages.list
deb [trusted=yes arch=all] https://ivam3.github.io/termux-packages stable extras
# x11-repo (sources.list.d/x11.list)
deb https://packages-cf.termux.dev/apt/termux-x11 x11 main
# tur-repo (sources.list.d/tur.list)
deb https://tur.kcubeterm.com tur-packages tur tur-on-device tur-continuous
# root-repo (sources.list.d/root.list)
deb https://packages-cf.termux.dev/apt/termux-root root stable
# sources.list.d/rendiix.list
deb https://rendiix.github.io android-tools termux
Updatable packages:
command-not-found/stable 2.4.0-48 aarch64 [upgradable from: 2.4.0-47]
libgit2/stable 1.8.3 aarch64 [upgradable from: 1.8.2]
termux-tools version:
1.44.1
Android version:
14
Kernel build information:
Linux localhost 5.15.123-android13-8-28577532-abX910XXS4BXG5 #1 SMP PREEMPT Thu Jul 11 02:48:07 UTC 2024 aarch64 Android
Device manufacturer:
samsung
Device model:
SM-X910
LD Variables:
LD_LIBRARY_PATH=:/data/data/com.termux/files/home/.local/lib/ollama:/data/data/com.termux/files/usr/lib:/data/data/com.termux/files/home/install/lib
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
Installed termux plugins:
com.termux.widget versionCode:13
com.termux.x11 versionCode:14
com.termux.api versionCode:51
com.termux.window versionCode:15
com.termux.styling versionCode:1000

OS

Linux

GPU

Other

CPU

Other

Ollama version

No response

Originally created by @b9Joker108 on GitHub (Oct 27, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/7381 ### What is the issue? I am endeavouring to set up an `ollama` server on my unrooted Termux host environment, please refer: https://github.com/ollama/ollama/issues/7349#issuecomment-2439776813 and https://github.com/ollama/ollama/issues/7292#issuecomment-2439781839 @vpnry @dhiltgen So, the process is: ## Process 1. git clone --depth 1 https://github.com/ollama/ollama.git 2. cd ollama 3. go generate ./... 4. delete the two lines of code, as per: https://github.com/ollama/ollama/issues/7292#issuecomment-2427773036 5. and write. 6. go build . 7. ./ollama serve & 8. and prosper! Is that the go? ## Device details: ```zsh ❯ termux-info Termux Variables: TERMUX_API_VERSION=0.50.1 TERMUX_APK_RELEASE=F_DROID TERMUX_APP_PACKAGE_MANAGER=apt TERMUX_APP_PID=3465 TERMUX_IS_DEBUGGABLE_BUILD=0 TERMUX_MAIN_PACKAGE_FORMAT=debian TERMUX_VERSION=0.118.1 TERMUX__USER_ID=0 Packages CPU architecture: aarch64 Subscribed repositories: # sources.list deb https://packages-cf.termux.dev/apt/termux-main stable main # sources.list.d/pointless.list deb https://its-pointless.github.io/files/21 termux extras # sources.list.d/ivam3-termux-packages.list deb [trusted=yes arch=all] https://ivam3.github.io/termux-packages stable extras # x11-repo (sources.list.d/x11.list) deb https://packages-cf.termux.dev/apt/termux-x11 x11 main # tur-repo (sources.list.d/tur.list) deb https://tur.kcubeterm.com tur-packages tur tur-on-device tur-continuous # root-repo (sources.list.d/root.list) deb https://packages-cf.termux.dev/apt/termux-root root stable # sources.list.d/rendiix.list deb https://rendiix.github.io android-tools termux Updatable packages: command-not-found/stable 2.4.0-48 aarch64 [upgradable from: 2.4.0-47] libgit2/stable 1.8.3 aarch64 [upgradable from: 1.8.2] termux-tools version: 1.44.1 Android version: 14 Kernel build information: Linux localhost 5.15.123-android13-8-28577532-abX910XXS4BXG5 #1 SMP PREEMPT Thu Jul 11 02:48:07 UTC 2024 aarch64 Android Device manufacturer: samsung Device model: SM-X910 LD Variables: LD_LIBRARY_PATH=:/data/data/com.termux/files/home/.local/lib/ollama:/data/data/com.termux/files/usr/lib:/data/data/com.termux/files/home/install/lib LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so Installed termux plugins: com.termux.widget versionCode:13 com.termux.x11 versionCode:14 com.termux.api versionCode:51 com.termux.window versionCode:15 com.termux.styling versionCode:1000 ``` ### OS Linux ### GPU Other ### CPU Other ### Ollama version _No response_
GiteaMirror added the bug label 2026-04-12 15:37:10 -05:00
Author
Owner

@fxmbsw7 commented on GitHub (Oct 27, 2024):

sorry whats the problem
is there one ?
or u just post info ?

https://github.com/ollama/ollama/issues/7292#issuecomment-2439815750

<!-- gh-comment-id:2439823986 --> @fxmbsw7 commented on GitHub (Oct 27, 2024): sorry whats the problem is there one ? or u just post info ? https://github.com/ollama/ollama/issues/7292#issuecomment-2439815750
Author
Owner

@b9Joker108 commented on GitHub (Oct 27, 2024):

I want confirmation of the process to install on an unrooted aarch64 Termux please.

<!-- gh-comment-id:2439860301 --> @b9Joker108 commented on GitHub (Oct 27, 2024): I want confirmation of the process to install on an unrooted aarch64 Termux please.
Author
Owner

@fxmbsw7 commented on GitHub (Oct 27, 2024):

so , here another link i posted before ur question
https://github.com/ollama/ollama/issues/7349#issue-2612784172
.. why dont u just try ?

<!-- gh-comment-id:2439862444 --> @fxmbsw7 commented on GitHub (Oct 27, 2024): so , here another link i posted before ur question https://github.com/ollama/ollama/issues/7349#issue-2612784172 .. why dont u just try ?
Author
Owner

@fxmbsw7 commented on GitHub (Oct 27, 2024):

https://github.com/ollama/ollama/issues/7292#issuecomment-2439891479

<!-- gh-comment-id:2440049451 --> @fxmbsw7 commented on GitHub (Oct 27, 2024): https://github.com/ollama/ollama/issues/7292#issuecomment-2439891479
Author
Owner

@bitsnaps commented on GitHub (Apr 12, 2025):

The best way at the moment: pkg install ollama on termux (you may need to install some prerequisites packages before that), that works for updating as well. Unrooted device confirmed.

<!-- gh-comment-id:2798742807 --> @bitsnaps commented on GitHub (Apr 12, 2025): The best way at the moment: `pkg install ollama` on termux (you may need to install some prerequisites packages before that), that works for updating as well. Unrooted device confirmed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#4691