diff --git a/symlinks/bin/update-all-packages b/symlinks/bin/update-all-packages index 2d696da..fbc896b 100755 --- a/symlinks/bin/update-all-packages +++ b/symlinks/bin/update-all-packages @@ -24,7 +24,7 @@ done declare -A RUN=() -for command in "pacman" "apt" "flatpak" "gem" "nvim" "asdf" "brew" "pacman"; +for command in "pacman" "apt" "dnf" "flatpak" "gem" "nvim" "asdf" "brew" "pacman"; do echo $command if type $command > /dev/null 2>&1 @@ -76,6 +76,18 @@ then sudo apt autoremove fi +if [ "${RUN[dnf]}" = "1" ] +then + # Clear out orphans + sudo dnf autoremove + + # Update dnf packages + sudo dnf update + + # Clear out orphans + sudo dnf autoremove +fi + if [ "${RUN[flatpak]}" = "1" ] then # Clear out unused flatpak apps