[PR #8359] feat(install): use curl -C to continue download #43942

Open
opened 2026-04-24 23:29:42 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/8359
Author: @vpavlin
Created: 1/9/2025
Status: 🔄 Open

Base: mainHead: feat/install-continue-dwnld


📝 Commits (2)

  • d0632f4 feat(install): use curl -C to continue download
  • df80e13 remove exit

📊 Changes

1 file changed (+11 additions, -3 deletions)

View changed files

📝 scripts/install.sh (+11 -3)

📄 Description

I've recently tried to install ollama on Raspberry Pi and due to a combination of slow memory card and unreliable WiFi the download of installation artifact failed multiple times. I had to start downloading from scratch each time.

This PR modifies the curl command to use -C to continue download rather than restart. This also means that the file has to be actually stored (i.e. not piped to tar), so it also introduces a new temporary directory /tmp/ollama_download to store the dowloaded tgz, which is removed immediately after unpacking it.

WDYT?


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/8359 **Author:** [@vpavlin](https://github.com/vpavlin) **Created:** 1/9/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feat/install-continue-dwnld` --- ### 📝 Commits (2) - [`d0632f4`](https://github.com/ollama/ollama/commit/d0632f47eb7753667dd8337406a543341d8ee7f9) feat(install): use curl -C to continue download - [`df80e13`](https://github.com/ollama/ollama/commit/df80e13b5cae32570d909bb7d73bb774cf51c290) remove exit ### 📊 Changes **1 file changed** (+11 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `scripts/install.sh` (+11 -3) </details> ### 📄 Description I've recently tried to install ollama on Raspberry Pi and due to a combination of slow memory card and unreliable WiFi the download of installation artifact failed multiple times. I had to start downloading from scratch each time. This PR modifies the `curl` command to use `-C` to continue download rather than restart. This also means that the file has to be actually stored (i.e. not piped to `tar`), so it also introduces a new temporary directory `/tmp/ollama_download` to store the dowloaded tgz, which is removed immediately after unpacking it. WDYT? --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-24 23:29:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#43942