[PR #14318] cmd: ollama update #14617

Open
opened 2026-04-13 00:59:16 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14318
Author: @BruceMacD
Created: 2/19/2026
Status: 🔄 Open

Base: mainHead: brucemacd/tui-update


📝 Commits (2)

📊 Changes

4 files changed (+386 additions, -0 deletions)

View changed files

📝 auth/auth.go (+22 -0)
📝 cmd/cmd.go (+28 -0)
version/update.go (+190 -0)
version/update_test.go (+146 -0)

📄 Description

Add interactive update check to CLI TUI and ollama update command

On TUI launch, check for updates in the background and cache the result as a marker file (~/.ollama/update). On the next launch, if a cached update exists, print a one-line notice before the TUI starts. The check is skipped for dev builds (0.0.0), alternative installs (e.g. brew, choco), and remote Ollama hosts.

Add ollama update subcommand that downloads and runs the platform-appropriate install script (install.sh on Linux/macOS, install.ps1 on Windows). Refuses to run if the binary wasn't installed via official channels unless --force is passed.

❯ ollama
A new version of Ollama is available. Run "ollama update" to install.

Ollama 0.0.1

▸ Run a model
    Start an interactive chat with a model

  Launch Claude Code
    Agentic coding across large codebases

....

❯ ollama update
>>> Stopping running Ollama instance...
>>> Removing existing Ollama installation...
>>> Downloading Ollama for macOS...
############################################################################################################################################################################################################### 100.0%
>>> Installing Ollama to /Applications...
>>> Starting Ollama...
>>> Install complete. You can now run 'ollama'.

🔄 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/14318 **Author:** [@BruceMacD](https://github.com/BruceMacD) **Created:** 2/19/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `brucemacd/tui-update` --- ### 📝 Commits (2) - [`71c1d8d`](https://github.com/ollama/ollama/commit/71c1d8d0a978212a5d5f0d5e777bb654a6fe21bf) cmd: ollama update - [`365a365`](https://github.com/ollama/ollama/commit/365a3657adddb10c628cb25f6242b778f791d258) fix test home on windows ### 📊 Changes **4 files changed** (+386 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `auth/auth.go` (+22 -0) 📝 `cmd/cmd.go` (+28 -0) ➕ `version/update.go` (+190 -0) ➕ `version/update_test.go` (+146 -0) </details> ### 📄 Description Add interactive update check to CLI TUI and `ollama update` command On TUI launch, check for updates in the background and cache the result as a marker file (~/.ollama/update). On the next launch, if a cached update exists, print a one-line notice before the TUI starts. The check is skipped for dev builds (0.0.0), alternative installs (e.g. brew, choco), and remote Ollama hosts. Add `ollama update` subcommand that downloads and runs the platform-appropriate install script (install.sh on Linux/macOS, install.ps1 on Windows). Refuses to run if the binary wasn't installed via official channels unless --force is passed. ```bash ❯ ollama A new version of Ollama is available. Run "ollama update" to install. Ollama 0.0.1 ▸ Run a model Start an interactive chat with a model Launch Claude Code Agentic coding across large codebases .... ❯ ollama update >>> Stopping running Ollama instance... >>> Removing existing Ollama installation... >>> Downloading Ollama for macOS... ############################################################################################################################################################################################################### 100.0% >>> Installing Ollama to /Applications... >>> Starting Ollama... >>> Install complete. You can now run 'ollama'. ``` --- <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-13 00:59:16 -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#14617