This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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""" |