sudo dnf check-update sudo dnf list updates sudo dnf update --security ? Или нужно обновлять и все приложения ? Просто страшно продакшен обновлять вдруг что-то сломается.
Прошу прощения за нубский вопрос, но хочу набраться смелости.
First off, there's no such thing as a "noob question" when you're trying to avoid production hiccups—it's wise to proceed with caution! Since you've already got a backup copy, you're ahead of the game. Backups are critical in case something goes awry, so kudos for that.
Here's a breakdown of the commands you mentioned:
sudo dnf check-update: This command checks for updates available for packages on your system. It's safe and doesn't make any changes; it just gives you a summary.
sudo dnf list updates: Similar to check-update, but it lists all available updates in a more detailed format. You can use this to assess what needs updating.
sudo dnf update --security: This applies only security updates to your system. It's ideal if you want to focus on critical patches without making broader changes that could impact dependencies or application behavior.
sudo dnf update: This updates all packages to their latest versions. While thorough, it carries the potential risk of breaking something, particularly if there are major changes or deprecated features in newer versions.
Suggestions for your production system:
If you're nervous, start with sudo dnf update --security to address urgent security vulnerabilities without touching unrelated packages.
Test updates on a staging or testing environment first, if possible. This way, you can evaluate their impact without risking your production setup.
After testing, consider updating all applications if necessary, but double-check compatibility, especially for key dependencies or custom configurations.