Files
illogical-impulse/sdata/dist-fedora/uninstall-deps.sh
T
2025-11-21 00:29:49 +08:00

10 lines
423 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# This script is meant to be sourced.
# It's not for directly running.
user_config="${REPO_ROOT}/sdata/dist-fedora/user-config.yaml"
yq -r '.dnf.transaction_ids[]? | reverse' "$user_config" | while read -r tx_id; do
echo -e "\n========================================"
echo "Rolling back DNF Transactions ID$tx_id"
echo "========================================"
v sudo dnf history undo -y "$tx_id"
done