Ensure Ollama Starts on System Boot
sudo systemctl enable ollama
Update All Models
Steps the Command Takes
- Send a GET request to the API endpoint at http://<ip_address>:11434/api/tags and parse the JSON response.
- Access the 'Name' property of the 'Models' object from the response.
- For each model name retrieved, execute the 'ollama pull' command to pull the corresponding model.
Paste the following into PowerShell or Terminal on the system with the Ollama models or through SSH
(Invoke-RestMethod http://localhost:11434/api/tags).Models.Name.ForEach{ ollama pull $_ }Restart Ollama
sudo systemctl restart ollama