What makes us different from other similar websites? › Forums › Tech › Fedora Update Commands
- This topic has 1 reply, 1 voice, and was last updated 1 month, 2 weeks ago by
thumbtak.
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
March 12, 2025 at 11:31 pm #8007
thumbtakModeratorSoftware update:
$ sudo dnf makecache --refresh $ sudo dnf check-update $ sudo dnf upgrade $ sudo dnf update $ sudo snap refresh $ sudo flatpak upgrade $ sudo flatpak uninstall --unused $ sudo dnf clean all $ sudo dnf autoremove $ sudo rpmconf -aNote: These are the same command. You can run both, but only one is needed.
$ sudo dnf upgrade $ sudo dnf updateTo upgrade to a new version:
https://fedoraproject.org//$ sudo dnf upgrade --refresh $ sudo dnf system-upgrade download --releasever=[version number here]Script: Save as update_system.sh
#!/bin/bash # Using simple separators to make text stand out SEPARATOR="----------------------------------------" echo "$SEPARATOR" echo "Starting system update process..." echo "$SEPARATOR" echo "Refreshing DNF cache..." sudo dnf makecache --refresh echo "DNF cache refreshed." echo "$SEPARATOR" echo "Upgrading system packages..." sudo dnf upgrade -y echo "System packages upgraded." echo "$SEPARATOR" echo "Refreshing Snap packages..." sudo snap refresh echo "Snap packages refreshed." echo "$SEPARATOR" echo "Upgrading Flatpak packages..." sudo flatpak upgrade -y echo "Flatpak packages upgraded." echo "$SEPARATOR" echo "Removing unused Flatpak packages..." sudo flatpak uninstall --unused -y echo "Unused Flatpak packages removed." echo "$SEPARATOR" echo "Cleaning DNF cache..." sudo dnf clean all echo "DNF cache cleaned." echo "$SEPARATOR" echo "Removing unused dependencies..." sudo dnf autoremove -y echo "Unused dependencies removed." echo "$SEPARATOR" echo "Checking configuration files..." sudo rpmconf -a echo "Configuration files checked." echo "$SEPARATOR" echo "System update completed." echo "$SEPARATOR" echo "Please review any changes made by rpmconf and dnf upgrade." echo "$SEPARATOR"Run after making script:
$ sudo chmod +x update_system.sh $ sudo bash update_system.shMore Info:
https://docs.fedoraproject.org/en-US/quick-docs/upgrading-fedora-offline/-
This topic was modified 10 months ago by
thumbtak. Reason: I updated the command 'sudo chmod +x update_system.sh'
December 1, 2025 at 6:58 pm #8341
thumbtakModeratorRemember, which I forgot, that the script doesn’t check for new versions. You should run this manually, every so often.
-
This topic was modified 10 months ago by
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
