[GH-ISSUE #767] Install ollama binary to user home directory? #46877

Closed
opened 2026-04-28 01:25:09 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @pneumic on GitHub (Oct 12, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/767

Originally assigned to: @BruceMacD on GitHub.

Context: https://github.com/jmorganca/ollama/issues/429#issuecomment-1694642023

Are there plans to provide an option for the user to install the binary to their home directory? In my particular case my work machine limits custom software installs to my home directory, for example.

Originally created by @pneumic on GitHub (Oct 12, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/767 Originally assigned to: @BruceMacD on GitHub. Context: https://github.com/jmorganca/ollama/issues/429#issuecomment-1694642023 Are there plans to provide an option for the user to install the binary to their home directory? In my particular case my work machine limits custom software installs to my home directory, for example.
Author
Owner

@BruceMacD commented on GitHub (Oct 12, 2023):

Hi @pneumic, you can actually do this just using curl. Here's how:

  1. Set $ARCH based off your system architecture. You can check this using the command uname -m.
  • if amd64 run ARCH=amd64
  • if aarch64 or arm64 run ARCH=arm64
  1. Download the binary.
curl --fail --show-error --location --progress-bar -o ~/ollama "https://ollama.ai/download/ollama-linux-$ARCH"
  1. Make the downloaded binary executable.
chmod +x ollama
<!-- gh-comment-id:1760325902 --> @BruceMacD commented on GitHub (Oct 12, 2023): Hi @pneumic, you can actually do this just using curl. Here's how: 1) Set $ARCH based off your system architecture. You can check this using the command `uname -m`. - if amd64 run `ARCH=amd64` - if aarch64 or arm64 run `ARCH=arm64` 2) Download the binary. ``` curl --fail --show-error --location --progress-bar -o ~/ollama "https://ollama.ai/download/ollama-linux-$ARCH" ``` 3) Make the downloaded binary executable. ``` chmod +x ollama ```
Author
Owner

@pneumic commented on GitHub (Oct 13, 2023):

Thanks, @BruceMacD, but I apologize for not mentioning that I am trying to install Ollama on macOS arm64—I tried using ollama-darwin-$ARCH as the URL as a guess, to no avail. Any workarounds for macOS?

<!-- gh-comment-id:1761896775 --> @pneumic commented on GitHub (Oct 13, 2023): Thanks, @BruceMacD, but I apologize for not mentioning that I am trying to install Ollama on macOS arm64—I tried using `ollama-darwin-$ARCH` as the URL as a guess, to no avail. Any workarounds for macOS?
Author
Owner

@BruceMacD commented on GitHub (Oct 15, 2023):

Oh MacOS, great. That is even easier.

  1. Download the latest ollama-darwin file from our releases page:
    https://github.com/jmorganca/ollama/releases
  2. Rename it to ollama (you could just do this step by manually renaming the file in Finder too):
mv ollama-darwin ollama
  1. Make the downloaded binary executable.
chmod +x ollama
  1. Move it to your path/home (wherever you want)
<!-- gh-comment-id:1763225941 --> @BruceMacD commented on GitHub (Oct 15, 2023): Oh MacOS, great. That is even easier. 1. Download the latest `ollama-darwin` file from our releases page: https://github.com/jmorganca/ollama/releases 2. Rename it to `ollama` (you could just do this step by manually renaming the file in Finder too): ``` mv ollama-darwin ollama ``` 3. Make the downloaded binary executable. ``` chmod +x ollama ``` 4. Move it to your path/home (wherever you want)
Author
Owner

@pneumic commented on GitHub (Oct 16, 2023):

Oh wow, please forgive my oversight. I was only aware of the GUI installer, which was asking to install a binary somewhere outside my $HOME iirc. Thanks so much.

<!-- gh-comment-id:1763658518 --> @pneumic commented on GitHub (Oct 16, 2023): Oh wow, please forgive my oversight. I was only aware of the GUI installer, which was asking to install a binary somewhere outside my `$HOME` iirc. Thanks so much.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#46877