Skip to content

Instantly share code, notes, and snippets.

View ZiyadRu's full-sized avatar

Ziyad ZiyadRu

View GitHub Profile
@ZiyadRu
ZiyadRu / test.py
Last active October 15, 2025 08:14
import subprocess
import requests
from packaging import version
# --- CONFIG ---
RELEASE_CODENAME = "noble" # 24.04 LTS
USN_FEED = "https://ubuntu.com/security/notices.json"
def get_installed_version(pkg):
"""Return the installed version of a package, or None if not installed"""