Update Scripts - XsMagical/Linux-Tools GitHub Wiki

Update Scripts

The Update Scripts in Linux Tools simplify keeping your Linux system up to date using safe, distro-appropriate commands.

🎯 Purpose

  • Automate system updates with safe defaults to avoid breaking dependencies.
  • Standardize the update process across multiple Linux distributions.
  • Reduce manual intervention while keeping detailed logs.

🖥️ Script Details

File: (WIP) Universal update script

  • Planned support for Fedora/RHEL, Ubuntu/Debian, Arch, and openSUSE.
  • Automatically detects your package manager and applies the correct update commands.
  • Uses safe flags (e.g., --skip-broken, --best, --allowerasing on DNF systems) to prevent breakage.
  • Cleans up old package metadata when appropriate.
  • Skips already updated packages for efficiency.
  • Logs every run to ~/scripts/logs/.

🔗 Location

https://github.com/XsMagical/Linux-Tools/tree/main/scripts/update

📋 Notes

  • Currently under development — functionality may change.
  • Goal is to make this script safe to run unattended or as a scheduled job.