Home
Softono
au

au

Open source MIT Shell
79
Stars
22
Forks
0
Issues
4
Watchers
4 years
Last Commit

About au

au is a lightweight command-line utility designed for Termux users to automatically backup installation files for .deb packages. The tool simplifies system maintenance by enabling easy rollback to previous package versions in case an update causes system instability or conflicts. When executed, au performs a standard update and upgrade sequence for Termux packages while simultaneously archiving the former package versions to a designated storage location, typically within the Android data directory or an optional external microSD card for space optimization. This creates a reliable safety net allowing users to quickly downgrade problematic packages using standard dpkg commands to restore system stability. Users install the script into their system path to access it as a one-command solution for both updating and securing their package history. By integrating the backup process directly into the routine update workflow, au ensures that historical package versions are preserved without requiring manual interven

Platforms

Web Self-hosted Linux Android

Languages

Shell

au

-r--r--r-- au

-rwxrwx--- au

You can use au 📲 to backup you installation files in Termux, i.e. debs. If you find your system unstable after updating, you can try to use dpkg --purge pkg_name and then dpkg --install pkg_name from /sdcard/debs to downgrade packages to a previous version of a package in the hope of regaining system stability in Termux.

You should use au from your $PATH. To see your $PATH, type $PATH +enter/return. Then use mv au destination_directory to move au to your $PATH. au +enter/return will update and backup your Termux Packages in three keystrokes!

Every time you want to apt update && apt upgrade or pkg up, you will also be backing up your former installation debs to /storage/emulated/0/Android/data/com.termux/txdebs by using au. Ideally, you should change /storage/emulated/0/Android/data/com.termux/txdebs to an external mirco SD card destination in lines 8 and 10 of au to save space on device.

If you find your system unstable, you can use dpkg --purge pkg_name and then dpkg --install pkg_name from /storage/emulated/0/Android/data/com.termux/txdebs to downgrade packages to a previous version of a package in the hope of regaining package stability.