Unar is a command-line archive extraction tool that lets you extract files from different archive formats in Termux. It supports password-protected archives and provides options to control where files are extracted. You can also choose how to handle existing files, filenames, and nested archives.
Here’s what you can do with Unar tool in Termux:
- Extract files from different archive formats.
- Extract files into a specific directory.
- Extract password-protected archives.
- Overwrite existing files during extraction.
- Extract selected files from an archive.
- Handle different filename encodings.
- Extract nested archives or disable recursive extraction.
Install Unar in Termux
Below is the command to install Unar tool in Termux using the Termux package manager. Simply copy and paste it into your Termux terminal.
First, update and upgrade the packages:
pkg update && pkg upgrade -yInstall Unar:
pkg install unar -yNow unar is ready to use in Termux.
Use Unar in Termux
You can use the following commands to extract archive files and control different Unar features in Termux.
Display the help menu:
unar --helpExtract an archive:
unar archive.zipExtract an archive into a specific directory:
unar -o /sdcard/Download archive.zipExtract an archive and overwrite existing files:
unar -f archive.zipRename files when they already exist:
unar -r archive.zipSkip files that already exist:
unar -s archive.zipAlways create a separate directory for extracted contents:
unar -d archive.zipExtract files without creating a separate directory:
unar -D archive.zipExtract a password-protected archive:
unar -p YOUR_PASSWORD archive.zipExtract specific files from an archive:
unar archive.zip file.txtExtract selected files using their indexes:
unar -i archive.zip 1 2Disable extraction of nested archives:
unar -nr archive.tar.gzCopy the archive’s modification time to the created directory:
unar -t archive.zipRun Unar in quiet mode:
unar -q archive.zipShow the installed version:
unar -vThese commands let you extract archives and manage files with different options in Termux.
End Note
Unar is a simple tool for extracting different archive files in Termux. It provides useful options for handling passwords, choosing extraction folders, and managing existing files.

