[GH-ISSUE #1980] Make update script skip execution if current version is latest (improvement) #1142

Closed
opened 2026-04-12 10:53:39 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @atassis on GitHub (Jan 13, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/1980

You can put a version file in the root of download directory and check if current installed ollama has an identical version, for example.

Originally created by @atassis on GitHub (Jan 13, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/1980 You can put a `version` file in the root of download directory and check if current installed ollama has an identical version, for example.
GiteaMirror added the feature request label 2026-04-12 10:53:39 -05:00
Author
Owner

@dhiltgen commented on GitHub (Jul 24, 2024):

I've seen some users wind up with a corrupt install, and re-running the install with the same version can clear that up. At this time, I don't think it makes sense to bypass installing if the version is unchanged.

What I would suggest is if you are trying to automate/script a system and prevent no-op upgrades, use something like curl -i https://ollama.com/download/ollama-linux-amd64 and check the redirect location for the version string, and compare that against ollama --version

<!-- gh-comment-id:2248957281 --> @dhiltgen commented on GitHub (Jul 24, 2024): I've seen some users wind up with a corrupt install, and re-running the install with the same version can clear that up. At this time, I don't think it makes sense to bypass installing if the version is unchanged. What I would suggest is if you are trying to automate/script a system and prevent no-op upgrades, use something like `curl -i https://ollama.com/download/ollama-linux-amd64` and check the redirect location for the version string, and compare that against `ollama --version`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#1142