[PR #2179] add --upgrade-all flag to refresh any stale models #57507

Open
opened 2026-04-29 12:09:19 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/2179
Author: @pdevine
Created: 1/24/2024
Status: 🔄 Open

Base: mainHead: upgrade-all


📝 Commits (3)

  • 021b1bd add --upgrade-all flag to refresh any stale models
  • 366b384 fix linter
  • 9a483dc refactor to use client.List instead of walking the filesystem

📊 Changes

5 files changed (+78 additions, -14 deletions)

View changed files

📝 api/types.go (+7 -5)
📝 cmd/cmd.go (+40 -3)
📝 progress/progress.go (+4 -0)
📝 server/images.go (+25 -5)
📝 server/routes.go (+2 -1)

📄 Description

This change allows you to run ollama pull --upgrade-all which will check each of your local models and upgrade any that are out of date. It uses Etags to check if there is a newer manifest, and then pulls that model if it has been updated.


🔄 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/2179 **Author:** [@pdevine](https://github.com/pdevine) **Created:** 1/24/2024 **Status:** 🔄 Open **Base:** `main` ← **Head:** `upgrade-all` --- ### 📝 Commits (3) - [`021b1bd`](https://github.com/ollama/ollama/commit/021b1bdc4a89eb20ff27f5a1863e24a02c492f56) add `--upgrade-all` flag to refresh any stale models - [`366b384`](https://github.com/ollama/ollama/commit/366b38460ffacfaa8193378486cd955dedd6f18f) fix linter - [`9a483dc`](https://github.com/ollama/ollama/commit/9a483dc7b71ab4ed8974a9ed16db7b04c3791847) refactor to use client.List instead of walking the filesystem ### 📊 Changes **5 files changed** (+78 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `api/types.go` (+7 -5) 📝 `cmd/cmd.go` (+40 -3) 📝 `progress/progress.go` (+4 -0) 📝 `server/images.go` (+25 -5) 📝 `server/routes.go` (+2 -1) </details> ### 📄 Description This change allows you to run `ollama pull --upgrade-all` which will check each of your local models and upgrade any that are out of date. It uses Etags to check if there is a newer manifest, and then pulls that model if it has been updated. --- <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-29 12:09:19 -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#57507