Skip to content

Instantly share code, notes, and snippets.

@iamshreeram
Last active July 2, 2024 17:19
Show Gist options
  • Select an option

  • Save iamshreeram/ea138d268bf13a51dc19b7d8e9c80b12 to your computer and use it in GitHub Desktop.

Select an option

Save iamshreeram/ea138d268bf13a51dc19b7d8e9c80b12 to your computer and use it in GitHub Desktop.

Revisions

  1. iamshreeram revised this gist Jul 2, 2024. 2 changed files with 9 additions and 1 deletion.
    9 changes: 9 additions & 0 deletions ollama-help-commands.md
    Original 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 {}
    ```
    1 change: 0 additions & 1 deletion ollama-model-info.sh
    Original file line number Diff line number Diff line change
    @@ -1 +0,0 @@
    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
  2. iamshreeram created this gist Jun 24, 2024.
    1 change: 1 addition & 0 deletions ollama-model-info.sh
    Original 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