DistroUpdater is a practical bash script designed to keep your Linux system up-to-date by automatically handling updates for both Arch Linux and Debian-based distributions. It detects the package management system used and performs the appropriate update commands, making system maintenance effortless.
- Automatically detects whether your system uses
pacman
(Arch Linux) orapt
(Debian-based). - Runs system updates with
pacman -Syu
orapt update && apt dist-upgrade
based on the detected system. - Logs all activities to a file for easy tracking and troubleshooting.
- Provides clear, user-friendly feedback on the update process.
- Bash scripting
pacman
for Arch Linuxapt
for Debian-based distributions
-
Clone the repository:
git clone https://github.com/secusavvy/DistroUpdater.git cd DistroUpdater
-
Make the script executable:
chmod +x Distroupdater.sh
-
Run the script:
./Distroupdater.sh
-
The script will automatically detect your Linux distribution and perform the necessary updates.
- The script starts by checking for the presence of Arch Linux or Debian-based package management directories.
- It runs the appropriate update commands based on the detected system.
- All actions and outputs are logged to a specified log file.
- Provides feedback on the status of the updates and informs the user of any issues.