{"id":21740115,"url":"https://github.com/dmitriz/ollama-tests","last_synced_at":"2026-04-10T23:02:31.706Z","repository":{"id":261862037,"uuid":"885562715","full_name":"dmitriz/ollama-tests","owner":"dmitriz","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-08T20:48:40.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T01:12:45.694Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmitriz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-08T20:46:34.000Z","updated_at":"2024-11-08T20:48:44.000Z","dependencies_parsed_at":"2024-11-08T21:33:34.385Z","dependency_job_id":null,"html_url":"https://github.com/dmitriz/ollama-tests","commit_stats":null,"previous_names":["dmitriz/ollama-tests"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dmitriz/ollama-tests","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitriz%2Follama-tests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitriz%2Follama-tests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitriz%2Follama-tests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitriz%2Follama-tests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmitriz","download_url":"https://codeload.github.com/dmitriz/ollama-tests/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitriz%2Follama-tests/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264726769,"owners_count":23654494,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-26T06:12:12.947Z","updated_at":"2026-04-10T23:02:26.658Z","avatar_url":"https://github.com/dmitriz.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# ollama-tests\n\nThis script installs Ollama on Linux without requiring sudo\n\n```bash\n#!/bin/sh\n\n# This script installs Ollama on Linux without requiring sudo.\nset -eu\nstatus() { echo \"\u003e\u003e\u003e $*\" \u003e\u00262; }\nerror() { echo \"ERROR $*\"; exit 1; }\nwarning() { echo \"WARNING: $*\"; }\n\nTEMP_DIR=$(mktemp -d)\ncleanup() { rm -rf \"$TEMP_DIR\"; }\ntrap cleanup EXIT\n\navailable() { command -v $1 \u003e/dev/null; }\nrequire() {\n    local MISSING=''\n    for TOOL in $*; do\n        if ! available $TOOL; then\n            MISSING=\"$MISSING $TOOL\"\n        fi\n    done\n    echo \"$MISSING\"\n}\n\n[ \"$(uname -s)\" = \"Linux\" ] || error 'This script is intended to run on Linux only.'\nARCH=$(uname -m)\ncase \"$ARCH\" in\n    x86_64) ARCH=\"amd64\" ;;\n    aarch64|arm64) ARCH=\"arm64\" ;;\n    *) error \"Unsupported architecture: $ARCH\" ;;\nesac\n\nIS_WSL2=false\nKERN=$(uname -r)\ncase \"$KERN\" in\n    *icrosoft*WSL2 | *icrosoft*wsl2) IS_WSL2=true;;\n    *icrosoft) error \"Microsoft WSL1 is not currently supported. Please use WSL2 with 'wsl --set-version \u003cdistro\u003e 2'\" ;;\n    *) ;;\nesac\n\nVER_PARAM=\"${OLLAMA_VERSION:+?version=$OLLAMA_VERSION}\"\nNEEDS=$(require curl awk grep sed tee xargs)\nif [ -n \"$NEEDS\" ]; then\n    status \"ERROR: The following tools are required but missing:\"\n    for NEED in $NEEDS; do\n        echo \"  - $NEED\"\n    done\n    exit 1\nfi\n\n# Install to a non-root directory\nOLLAMA_INSTALL_DIR=\"$HOME/.local/share/ollama\"\nBINDIR=\"$HOME/.local/bin\"\n\nstatus \"Installing ollama to $OLLAMA_INSTALL_DIR\"\nmkdir -p \"$BINDIR\"\nmkdir -p \"$OLLAMA_INSTALL_DIR\"\n\nif curl -I --silent --fail --location \"https://ollama.com/download/ollama-linux-${ARCH}.tgz${VER_PARAM}\" \u003e/dev/null ; then\n    status \"Downloading Linux ${ARCH} bundle\"\n    curl --fail --show-error --location --progress-bar \\\n        \"https://ollama.com/download/ollama-linux-${ARCH}.tgz${VER_PARAM}\" | \\\n        tar -xzf - -C \"$OLLAMA_INSTALL_DIR\" --strip-components=1\nelse\n    status \"Downloading Linux ${ARCH} CLI\"\n    curl --fail --show-error --location --progress-bar -o \"$TEMP_DIR/ollama\"\\\n    \"https://ollama.com/download/ollama-linux-${ARCH}${VER_PARAM}\"\n    mv \"$TEMP_DIR/ollama\" \"$OLLAMA_INSTALL_DIR/ollama\"\nfi\n\n# Create a symlink in $BINDIR\nif [ ! -f \"$BINDIR/ollama\" ] ; then\n    ln -sf \"$OLLAMA_INSTALL_DIR/ollama\" \"$BINDIR/ollama\"\nfi\n\ninstall_success() {\n    status 'The Ollama API is now available at 127.0.0.1:11434.'\n    status 'Install complete. Run \"ollama\" from the command line.'\n}\ntrap install_success EXIT\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmitriz%2Follama-tests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmitriz%2Follama-tests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmitriz%2Follama-tests/lists"}