{
  "schemaVersion": "1.0",
  "item": {
    "slug": "ollama-updater",
    "name": "Ollama Updater",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/newolf20000/ollama-updater",
    "canonicalUrl": "https://clawhub.ai/newolf20000/ollama-updater",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/ollama-updater",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=ollama-updater",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "INSTALL.md",
      "PUBLISH.md",
      "README.md",
      "SKILL.md",
      "TEST-REPORT.md",
      "ollama-install.sh"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/ollama-updater"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/ollama-updater",
    "agentPageUrl": "https://openagent3.xyz/skills/ollama-updater/agent",
    "manifestUrl": "https://openagent3.xyz/skills/ollama-updater/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/ollama-updater/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "ollama-updater",
        "body": "带断点续传功能的 Ollama 安装/更新工具，解决网络不稳定导致的下载中断问题。"
      },
      {
        "title": "功能",
        "body": "✅ 断点续传: 使用 curl -C - 实现下载中断后继续下载\n✅ 自动重试: 下载失败自动重试 3 次\n✅ 进度显示: 实时显示下载进度\n✅ 智能清理: 自动清理旧版本\n✅ GPU 支持: 自动检测并安装 NVIDIA/AMD GPU 驱动"
      },
      {
        "title": "安装",
        "body": "# 使用 OpenClaw\nopenclaw skills install ollama-updater\n\n# 或使用 ClawHub\nclawhub install ollama-updater"
      },
      {
        "title": "基本用法",
        "body": "ollama-updater"
      },
      {
        "title": "指定版本",
        "body": "OLLAMA_VERSION=0.5.7 ollama-updater"
      },
      {
        "title": "手动运行",
        "body": "# 直接运行脚本\nbash /path/to/ollama-updater/main.py\n\n# 或使用 sudo\nsudo bash /path/to/ollama-updater/main.py"
      },
      {
        "title": "断点续传原理",
        "body": "使用 curl 的 -C - 参数实现断点续传：\n\n# 普通下载（中断后需要从头开始）\ncurl -O https://example.com/file.tar.gz\n\n# 断点续传（中断后可以继续）\ncurl -C - -O https://example.com/file.tar.gz\n\n如果下载中断，只需重新运行命令，curl 会自动从断点处继续下载。"
      },
      {
        "title": "下载总是中断",
        "body": "原因: 网络不稳定或服务器限速\n\n解决:\n\n多次运行脚本，会自动从断点续传\n使用国内镜像（如有）\n检查网络连接"
      },
      {
        "title": "提示 zstd 错误",
        "body": "原因: 需要 zstd 解压工具\n\n解决:\n\n# Debian/Ubuntu\nsudo apt-get install zstd\n\n# RHEL/CentOS/Fedora\nsudo dnf install zstd\n\n# Arch\nsudo pacman -S zstd"
      },
      {
        "title": "权限错误",
        "body": "原因: 需要 sudo 权限\n\n解决:\n\nsudo ollama-updater"
      },
      {
        "title": "与官方脚本的区别",
        "body": "功能官方脚本ollama-updater断点续传❌✅自动重试❌✅ (3 次)进度显示✅✅GPU 检测✅✅systemd 配置✅✅"
      },
      {
        "title": "断点续传实现",
        "body": "download_file() {\n    local url=\"$1\"\n    local output=\"$2\"\n    local max_retries=3\n    local retry_count=0\n    \n    while [ $retry_count -lt $max_retries ]; do\n        retry_count=$((retry_count + 1))\n        \n        # 使用 -C - 实现断点续传\n        if curl --fail --show-error --location --progress-bar -C - -o \"$output\" \"$url\"; then\n            return 0\n        fi\n        \n        if [ $retry_count -lt $max_retries ]; then\n            sleep 5\n        fi\n    done\n    \n    error \"Download failed after $max_retries attempts\"\n}"
      },
      {
        "title": "下载流程",
        "body": "检查是否需要断点续传（已有部分文件）\n使用 curl -C - 继续下载\n下载失败自动重试（最多 3 次）\n下载成功后验证并解压"
      },
      {
        "title": "系统要求",
        "body": "Linux (x86_64, aarch64)\nmacOS (x86_64, aarch64)\ncurl (必需)\nzstd (新版 Ollama 需要)\nsudo (系统级安装需要)"
      },
      {
        "title": "文件结构",
        "body": "ollama-updater/\n├── main.py              # 主程序（包装官方脚本）\n├── ollama-install.sh    # 改进的安装脚本\n├── SKILL.md             # 技能说明\n├── README.md            # 使用指南\n└── package.json         # 包信息"
      },
      {
        "title": "v1.0.0 (2026-02-20)",
        "body": "初始版本\n添加断点续传功能\n添加自动重试机制\n保留官方脚本所有功能"
      },
      {
        "title": "许可证",
        "body": "MIT License"
      },
      {
        "title": "支持",
        "body": "如有问题，请提交到：https://github.com/openclaw/skills/issues"
      }
    ],
    "body": "ollama-updater\n\n带断点续传功能的 Ollama 安装/更新工具，解决网络不稳定导致的下载中断问题。\n\n功能\n✅ 断点续传: 使用 curl -C - 实现下载中断后继续下载\n✅ 自动重试: 下载失败自动重试 3 次\n✅ 进度显示: 实时显示下载进度\n✅ 智能清理: 自动清理旧版本\n✅ GPU 支持: 自动检测并安装 NVIDIA/AMD GPU 驱动\n安装\n# 使用 OpenClaw\nopenclaw skills install ollama-updater\n\n# 或使用 ClawHub\nclawhub install ollama-updater\n\n使用方法\n基本用法\nollama-updater\n\n指定版本\nOLLAMA_VERSION=0.5.7 ollama-updater\n\n手动运行\n# 直接运行脚本\nbash /path/to/ollama-updater/main.py\n\n# 或使用 sudo\nsudo bash /path/to/ollama-updater/main.py\n\n断点续传原理\n\n使用 curl 的 -C - 参数实现断点续传：\n\n# 普通下载（中断后需要从头开始）\ncurl -O https://example.com/file.tar.gz\n\n# 断点续传（中断后可以继续）\ncurl -C - -O https://example.com/file.tar.gz\n\n\n如果下载中断，只需重新运行命令，curl 会自动从断点处继续下载。\n\n故障排查\n下载总是中断\n\n原因: 网络不稳定或服务器限速\n\n解决:\n\n多次运行脚本，会自动从断点续传\n使用国内镜像（如有）\n检查网络连接\n提示 zstd 错误\n\n原因: 需要 zstd 解压工具\n\n解决:\n\n# Debian/Ubuntu\nsudo apt-get install zstd\n\n# RHEL/CentOS/Fedora\nsudo dnf install zstd\n\n# Arch\nsudo pacman -S zstd\n\n权限错误\n\n原因: 需要 sudo 权限\n\n解决:\n\nsudo ollama-updater\n\n与官方脚本的区别\n功能\t官方脚本\tollama-updater\n断点续传\t❌\t✅\n自动重试\t❌\t✅ (3 次)\n进度显示\t✅\t✅\nGPU 检测\t✅\t✅\nsystemd 配置\t✅\t✅\n技术细节\n断点续传实现\ndownload_file() {\n    local url=\"$1\"\n    local output=\"$2\"\n    local max_retries=3\n    local retry_count=0\n    \n    while [ $retry_count -lt $max_retries ]; do\n        retry_count=$((retry_count + 1))\n        \n        # 使用 -C - 实现断点续传\n        if curl --fail --show-error --location --progress-bar -C - -o \"$output\" \"$url\"; then\n            return 0\n        fi\n        \n        if [ $retry_count -lt $max_retries ]; then\n            sleep 5\n        fi\n    done\n    \n    error \"Download failed after $max_retries attempts\"\n}\n\n下载流程\n检查是否需要断点续传（已有部分文件）\n使用 curl -C - 继续下载\n下载失败自动重试（最多 3 次）\n下载成功后验证并解压\n系统要求\nLinux (x86_64, aarch64)\nmacOS (x86_64, aarch64)\ncurl (必需)\nzstd (新版 Ollama 需要)\nsudo (系统级安装需要)\n文件结构\nollama-updater/\n├── main.py              # 主程序（包装官方脚本）\n├── ollama-install.sh    # 改进的安装脚本\n├── SKILL.md             # 技能说明\n├── README.md            # 使用指南\n└── package.json         # 包信息\n\n版本历史\nv1.0.0 (2026-02-20)\n初始版本\n添加断点续传功能\n添加自动重试机制\n保留官方脚本所有功能\n许可证\n\nMIT License\n\n支持\n\n如有问题，请提交到：https://github.com/openclaw/skills/issues"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/newolf20000/ollama-updater",
    "publisherUrl": "https://clawhub.ai/newolf20000/ollama-updater",
    "owner": "newolf20000",
    "version": "1.0.1",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/ollama-updater",
    "downloadUrl": "https://openagent3.xyz/downloads/ollama-updater",
    "agentUrl": "https://openagent3.xyz/skills/ollama-updater/agent",
    "manifestUrl": "https://openagent3.xyz/skills/ollama-updater/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/ollama-updater/agent.md"
  }
}