← 返回
数据分析 中文

Os Update Checker

Check for available OS package updates with per-package changelog summaries and risk classification. Supports apt (Debian/Ubuntu), dnf (Fedora/RHEL), yum (Ce...
检查可用的系统包更新,提供逐包更新日志摘要及风险分级。支持 apt (Debian/Ubuntu)、dnf (Fedora/RHEL)、yum (Ce...
pfrederiksen
数据分析 clawhub v1.2.1 2 版本 100000 Key: 无需
★ 1
Stars
📥 639
下载
💾 10
安装
2
版本
#latest

概述

OS Update Checker

Read-only, cross-platform package update checker. Auto-detects the available package manager, lists upgradable packages, fetches changelogs, and classifies risk (security, moderate, low). Designed to give enough context to approve or defer an upgrade confidently.

Supported Package Managers

OS / RuntimePackage Manager
------
Debian / Ubuntu / Mintapt
Fedora / RHEL 8+ / Rocky / Almadnf
CentOS 7 / RHEL 7yum
Arch / Manjaro / EndeavourOSpacman / checkupdates
openSUSE Leap / Tumbleweed / SLESzypper
Alpine Linuxapk
macOS / Linux (Homebrew)brew
Node.js (global npm packages)npm

Usage

# Human-readable summary with changelogs (auto-detects OS)
python3 scripts/check_updates.py

# JSON output (for dashboards, cron, integrations)
python3 scripts/check_updates.py --format json

# Skip changelogs for a quick count
python3 scripts/check_updates.py --no-changelog

Risk Classification

  • 🔴 security — source repo contains a security indicator
  • 🟡 moderate — critical package (kernel, openssh, openssl, sudo, curl, bash, etc.)
  • 🟢 low — standard maintenance update

How It Works

  1. Detects available package manager from PATH (aptdnfyumpacmanzypperapkbrew)
  2. Lists upgradable packages using the appropriate read-only command
  3. Validates each package name against a per-backend allowlist regex before any further use
  4. Fetches the most recent changelog entry per package (apt: apt changelog; dnf/yum: rpm --changelog; others: package info)
  5. Reports in text or JSON format

Security Design

  • subprocess is used exclusively with shell=False — arguments are passed as a list, never interpolated into a shell string
  • Package names are validated against per-backend allowlist patterns before use in commands
  • All exceptions are caught by specific type — no bare except
  • Read-only commands only — no installs, no writes, no service restarts

System Access

  • Commands (read-only): apt list, apt changelog, dnf check-update, rpm -q --changelog, yum check-update, pacman -Qu, pacman -Si, zypper list-updates, zypper info, apk list, apk info, brew outdated, brew info, npm outdated -g --json
  • Network: Outbound HTTPS to distribution changelog servers (apt); outbound HTTPS to registry.npmjs.org (npm); others use local package metadata
  • No file writes

Requirements

  • Python 3.10+
  • One supported package manager available on PATH

版本历史

共 2 个版本

  • v1.2.1 当前
    2026-03-29 16:59 安全 安全
  • v1.1.0
    2026-03-26 22:18

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 368 📥 140,470
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 65,124
data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 165 📥 60,022