What makes us different from other similar websites? › Forums › Tech › Fedora Update Commands
- This topic has 0 replies, 1 voice, and was last updated 1 month, 1 week ago by
thumbtak.
Viewing 1 post (of 1 total)
-
AuthorPosts
-
March 12, 2025 at 11:31 pm #8007
thumbtak
KeymasterSoftware 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 -a
Note: These are the same command. You can run both, but only one is needed.
$ sudo dnf upgrade $ sudo dnf update
To 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.sh
More Info:
https://docs.fedoraproject.org/en-US/quick-docs/upgrading-fedora-offline/-
This topic was modified 4 weeks ago by
thumbtak. Reason: I updated the command 'sudo chmod +x update_system.sh'
-
This topic was modified 4 weeks ago by
-
AuthorPosts
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.