[GH-ISSUE #1171] Update installed models #595

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

Originally created by @Bodo-von-Greif on GitHub (Nov 17, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/1171

Hi all,

i wrote a small bash script to update the installed models.
Maybe its useful for some of you:

`
#/bin/bash

#Based on: ollama run codellama 'show me how to send the first colum named "name" of the list which is produced with ollama list with xargs to "ollama pull"'
echo "Actual models"
ollama list
echo
ollama list | grep -v "NAME" | awk '{print $1}' | xargs -I{} ollama pull {}
echo
echo "Updated models"
ollama list
`

Originally created by @Bodo-von-Greif on GitHub (Nov 17, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/1171 Hi all, i wrote a small bash script to update the installed models. Maybe its useful for some of you: ` #/bin/bash #Based on: ollama run codellama 'show me how to send the first colum named "name" of the list which is produced with ollama list with xargs to "ollama pull"' echo "Actual models" ollama list echo ollama list | grep -v "NAME" | awk '{print $1}' | xargs -I{} ollama pull {} echo echo "Updated models" ollama list `
Author
Owner

@BruceMacD commented on GitHub (Nov 17, 2023):

Thanks for the contribution @Bodo-von-Greif, resolving this for now as there doesn't seem to be any more work required here, but people will still be able to reference this in the future when they're searching.

<!-- gh-comment-id:1816949004 --> @BruceMacD commented on GitHub (Nov 17, 2023): Thanks for the contribution @Bodo-von-Greif, resolving this for now as there doesn't seem to be any more work required here, but people will still be able to reference this in the future when they're searching.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#595