Safely upgrade Debian/Ubuntu or Termux packages in small, manageable segments.**
This script lets you split apt upgrade
operations into smaller install scripts, so you can review and control updates safely.
- Works on Debian-based (Ubuntu, Termux, etc.)
- Automatically uses
sudo
where needed - Lets you define how many packages to install per batch
- Generates individual install scripts for each group
- Clone the repo or download the script:
git clone https://github.com/linux-edu/Safe-Upgrade.git
cd safe-upgrade
chmod +x safe-upgrade.sh
- Run the script:
./safe-upgrade.sh
-
Enter how many packages you'd like per install group (e.g., 5, 10, 20).
-
The script will:
- Update your package list
- List upgradeable packages
- Split them into chunks
- Create scripts like
install_package_segment_aa.sh
-
To install:
./install_package_segment_aa.sh
- β Termux
- β Debian, Ubuntu, Parrot, Kali, etc.
System-wide upgrades can occasionally break things. This tool allows:
- Incrementa installation
- Reviewing changes per segment
- Safer debugging if something goes wrong
This project is licensed under the MIT License.
PRs welcome! Or fork and customize for your use.
π Sponsor Us
If you find our work useful, consider supporting it.
Your sponsorship helps us:
- Maintain and improve open-source tools like
safe-upgrade
- Create more scripts for Termux and Linux users
- Dedicate time to education and community projects
Even small contributions go a long way β thank you for helping us keep open-source accessible to everyone. π