Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 876 Bytes

README.md

File metadata and controls

39 lines (24 loc) · 876 Bytes

Ollama Update Models Script

This script contains updating models using the ollama CLI tool. The script automatically pulls the latest versions of all installed models.

Currently, Ollama CLI does not support updating models in bulk. This script is a workaround to update all models at once.

Requirements

  • Ollama installed on your machine.

Usage

Unix/Linux

  1. Set the script as executable.

    chmod +x update_models.sh
  2. Run the script.

    ./update_models.sh

Windows (Powershell)

  1. Run the script.

    .\update_models.ps1

    NOTE: By default, PowerShell may restrict script execution. To allow your script to run, you might need to adjust the execution policy. Open PowerShell as Administrator and run:

        Set-ExecutionPolicy Unrestricted