Skip to content

Instantly share code, notes, and snippets.

@iamshreeram
Last active July 2, 2024 17:19
Show Gist options
  • Save iamshreeram/ea138d268bf13a51dc19b7d8e9c80b12 to your computer and use it in GitHub Desktop.
Save iamshreeram/ea138d268bf13a51dc19b7d8e9c80b12 to your computer and use it in GitHub Desktop.
Commands and Scripts that help in the operations of ollama

View all installed Ollama models using command line

for i in $(ollama list); do name=`echo "$i" | grep ":"`; [[ ${name} != *":"* ]] || echo -e "\033[0;31m\033[1m$name\033[0m\033[0m\n`ollama show $name`" ; done

Upgrade all installed Ollama models using command line

ollama list | tail -n +2 | awk '{print $1}' | xargs -I {} ollama pull {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment