atool is a useful command-line tool for managing different types of archive files in Termux. It lets you list, extract, create, compare, and manage archives using simple commands. It supports formats like ZIP, TAR, GZIP, and many others. You can use atool to handle archive files from the Termux terminal.
Here’s what you can do with atool in Termux:
- List files inside an archive.
- Extract files from an archive.
- Extract an archive to a specific directory.
- Create new archives.
- Display files from an archive.
- Compare two archives.
- Repack an archive into another format.
- Control extraction and overwrite options.
- Simulate archive operations without changing files.
Install atool in Termux
Below is the simple command to install atool in Termux using the pkg package manager. Just open Termux, copy the command and run it.
First, update the Termux packages.
pkg update && pkg upgrade -yInstall atool.
pkg install atool -yCheck the installed version.
atool --versionatool is now installed and ready to use.
Use atool in Termux
After installing atool, you can use a few simple commands to view, extract, create, and manage different archive files.
List the files inside an archive.
atool -l archive.zipYou can also use:
als archive.zipExtract an archive.
atool -x archive.zipYou can also use:
aunpack archive.zipExtract an archive to a specific directory.
atool -X ~/Documents archive.zipCreate an archive.
atool -a backup.tar.gz file1.txt file2.txtYou can also use:
apack backup.tar.gz file1.txt file2.txtExtract a file from an archive and display it in the terminal.
atool -c archive.zip file.txtYou can also use:
acat archive.zip file.txtCompare two archives.
atool -d archive1.zip archive2.zipYou can also use:
adiff archive1.zip archive2.zipRepack an archive into another format.
atool -r archive.zipYou can also use:
arepack archive.zipForce overwriting of existing files while extracting.
atool -xf archive.zipIncrease the output details.
atool -v -l archive.zipDecrease the output details.
atool -q -l archive.zipShow what atool is doing during an operation.
atool -E -x archive.zipSimulate an operation without making changes to the filesystem.
atool -S -x archive.zipExtract an archive and always create a subdirectory.
atool -D -x archive.zipSpecify the archive format manually.
atool -F zip -a backup.zip file.txtShow the atool help menu.
atool --helpYou can use these commands to work with archive files in termux and easily manage different compressed files in one place.
End Note
atool is a useful command-line archive management tool that allows you to handle different formats from the terminal with easy commands and keep your file management tasks simple. You can use it to manage your archive files in termux.

