Last active
July 2, 2024 17:19
-
-
Save iamshreeram/ea138d268bf13a51dc19b7d8e9c80b12 to your computer and use it in GitHub Desktop.
Revisions
-
iamshreeram revised this gist
Jul 2, 2024 . 2 changed files with 9 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ ## 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 {} ``` This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1 +0,0 @@ -
iamshreeram created this gist
Jun 24, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ 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