Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Fedora 43 -> 44 upgrade rescue script
set -e
echo "=== Step 1: Find duplicate fc43 packages with fc44 counterparts ==="
> /tmp/to-erase.txt
rpm -qa --qf '%{NAME}|%{VERSION}-%{RELEASE}|%{ARCH}\n' | while IFS='|' read name verrel arch; do
case "$verrel" in
*.fc43) ;;
*) continue ;;