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

Open
opened 2026-04-13 00:32:11 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/ollama/ollama/pull/11925

State: open
Merged: No


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.
**Original Pull Request:** https://github.com/ollama/ollama/pull/11925 **State:** open **Merged:** No --- 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.
GiteaMirror added the pull-request label 2026-04-13 00:32:11 -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#13659