[PR #11925] Download before deleting old installation #44907

Open
opened 2026-04-25 00:35:04 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/11925
Author: @LeMyst
Created: 8/15/2025
Status: 🔄 Open

Base: mainHead: patch-1


📝 Commits (1)

  • a12a4b8 Download before deleting old installation

📊 Changes

1 file changed (+13 additions, -6 deletions)

View changed files

📝 scripts/install.sh (+13 -6)

📄 Description

This pull request updates the installation process in scripts/install.sh to improve reliability and prevent accidental removal of the existing installation if a download fails. The most important changes are grouped below:

Installation reliability improvements:

  • The bundle is now downloaded to a temporary file ($BUNDLE_TGZ) first, rather than streaming directly into tar, ensuring the download completes successfully before extraction.
  • Removal of the previous installation at $OLLAMA_INSTALL_DIR/lib/ollama is now performed only after a successful download, reducing risk of leaving the system in a broken state if the download fails.
  • Extraction of the downloaded bundle is now a separate step after download, rather than combined with the download command, making the process clearer and easier to debug.

🔄 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/11925 **Author:** [@LeMyst](https://github.com/LeMyst) **Created:** 8/15/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`a12a4b8`](https://github.com/ollama/ollama/commit/a12a4b8154e42299c84f29f466f38a0e0556541d) Download before deleting old installation ### 📊 Changes **1 file changed** (+13 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `scripts/install.sh` (+13 -6) </details> ### 📄 Description This pull request updates the installation process in `scripts/install.sh` to improve reliability and prevent accidental removal of the existing installation if a download fails. The most important changes are grouped below: **Installation reliability improvements:** * The bundle is now downloaded to a temporary file (`$BUNDLE_TGZ`) first, rather than streaming directly into `tar`, ensuring the download completes successfully before extraction. * Removal of the previous installation at `$OLLAMA_INSTALL_DIR/lib/ollama` is now performed only after a successful download, reducing risk of leaving the system in a broken state if the download fails. * Extraction of the downloaded bundle is now a separate step after download, rather than combined with the download command, making the process clearer and easier to debug. --- <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-25 00:35:04 -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#44907