Skip to content

Releases: LinuxUtils/pactool

Pactool [1.0.2]

19 Jul 10:38
49551f8

Choose a tag to compare

Highlights of v1.0.2

  • Package History & Version Intelligence
    • --history PACKAGE — view every install / upgrade event with aligned timestamps, the exact command that triggered it, and a visual version tree.
    • --versions PACKAGE — list every version available in the repos and (optionally) assess real‑time CVE counts with color‑coded risk levels.
  • Interactive Risk Assessment
    • Live spinner while vulnerabilities are queried from the NVD API.
    • Graceful Ctrl + C handling: spinner stops instantly, no shutdown traceback.
  • SafeThread Utility
    • Centralised thread wrapper that captures all exceptions, supports a .stop() flag, and prevents “lock.acquire() KeyboardInterrupt” errors at exit.
  • Refined Output Alignment
    • Accurate column widths that ignore ANSI colour codes—no more ragged edges.
    • (Current) tag, risk labels, and CVE counts now line up perfectly on all terminals.
  • Help & Parser Updates
    • --history and --versions documented in both --help and README.
    • New --assess-risk flag toggles CVE look‑ups on demand.

New Security Features

  • Real CVE queries via the official NVD REST API (no third‑party libs).
  • Risk thresholds: High (> 5 CVEs), Medium (1–5), Low (0).
  • Spinner shows Assessing risk for "pkg" with live animation.

Commands Overview

pactool --history bash
pactool --versions openssl --assess-risk
pactool --versions nano # Quick list, no CVE look‑up

Known Limitations

  • NVD API is rate‑limited to 5 requests / 30 seconds; large version sets may throttle.
  • Risk assessment requires internet connectivity.

Download & Install

git clone https://github.com/LinuxUtils/pactool.git
cd pactool
python3 pactool.py --help

Pactool [1.0.0]

19 Jul 08:26
935fb4b

Choose a tag to compare

Highlights of v1.0.0

  • Cross-distro Support – Works seamlessly with pacman (Arch, Manjaro) and apt (Debian, Ubuntu).
  • Powerful Package Management
    • List, search, install, uninstall, update, and upgrade packages.
    • Detailed package statistics with --stats.
    • File listing for any package using --files PACKAGE.
    • Reverse dependency tree via --why PACKAGE.
    • Identify unused/orphaned packages (--unused) and bloat.
  • Advanced Sorting & Filtering
    • Sort packages by name, size, type, or installation date.
    • Filter by user-installed or system packages (--user, --system).
  • Mirror Management
    • View current mirrors with latency and update time.
    • Update to fastest mirrors with --update-mirrors.
    • Backup and revert mirrors with timestamped snapshots.
  • Kernel Management
    • Safely remove old kernels (--cleanup-kernels).
    • Backup current kernel and initramfs (--backup-kernel).
  • Security Tools
    • --vuln-check PACKAGE to check known CVEs.
    • --deep-search for detailed vulnerability history and exploit data.
    • --upgrade-security (Debian/Ubuntu only) to upgrade security-related packages.
    • --view-security-packages for a security-focused package view.

New Security Features

  • Integrated arch-audit support for Arch Linux vulnerability checks.
  • CVE scanning with detailed pagination and keyword search.
  • Color-coded risk levels (High/Medium/Low).

Commands Overview

bash
pactool --list
pactool --stats
pactool --vuln-check firefox --deep-search
pactool --update-mirrors
pactool --cleanup-kernels


Known Limitations

  • --upgrade-security currently works only on Debian/Ubuntu.
  • For Arch users, arch-audit must be installed for vulnerability checks.

Download & Install

bash
git clone https://github.com/LinuxUtils/pactool.git
cd pactool
python3 pactool.py --help