A user-friendly Python script to update and upgrade your Linux system with visual feedback and safety features.
update_upgrade.log
apt
package manager (Debian/Ubuntu based systems)chmod +x update_upgrade_linux.py
sudo python update_upgrade_linux.py
To see what the script would do without making any changes:
sudo python update_upgrade_linux.py --dry-run
Linux System Update and Upgrade
=============================
This script will update and upgrade your Linux system.
It will perform the following steps:
1. Update package list
2. Upgrade installed packages
3. Remove unnecessary packages
4. Clean package cache
Updating Package List
===================
Updating package list... β
β Package list updated successfully
Upgrading Packages
================
Upgrading packages... β
β Packages upgraded successfully
Cleaning Up
==========
Removing unnecessary packages... β
β Unnecessary packages removed
Cleaning package cache... β
β Package cache cleaned
Summary
=======
β System update and upgrade completed successfully!
Your system is now up to date!
Linux System Update and Upgrade
=============================
This script will update and upgrade your Linux system.
It will perform the following steps:
1. Update package list
2. Upgrade installed packages
3. Remove unnecessary packages
4. Clean package cache
β DRY RUN MODE: No changes will be made to the system
Updating Package List
===================
Updating package list... β
β Would run: apt update
Upgrading Packages
================
Upgrading packages... β
β Would run: apt upgrade -y
Cleaning Up
==========
Removing unnecessary packages... β
β Would run: apt autoremove -y
Cleaning package cache... β
β Would run: apt autoclean
Summary
=======
β This was a dry run. No changes were made to the system.
The script creates a log file update_upgrade.log
with detailed information about:
The script includes comprehensive error handling:
Feel free to submit issues and enhancement requests!
This project is open source and available under the MIT License.