unrar-nonfree
unrar-nonfree is a non-free unarchiver for extracting files from .rar archives. It provides the unrar command along with supporting libraries for RAR file handling.
Description
unrar-nonfree extracts files from RAR archives, supporting multiple volumes and various extraction options. It is the non-free version of the unrar tool in Kali Linux, suitable for handling proprietary RAR formats. The package includes the main unrar binary as well as development libraries like libunrar-dev, libunrar-headers, and the shared library libunrar5t64 for integrating RAR extraction into other applications.
Use cases include forensic analysis where RAR archives need to be unpacked, data recovery from compressed RAR files, and general archive management in penetration testing environments. Unlike the free rar package which focuses on creation, unrar-nonfree specializes in extraction. Configuration files allow customizing default switches for commands.
The tool processes RAR archives with features like password protection, file filtering, and path manipulation, making it versatile for scripted extractions in security workflows.
How It Works
unrar-nonfree uses the libunrar library to parse and extract RAR archive formats, handling multi-volume archives by specifying the first volume. It supports commands like e for basic extraction and x for full-path extraction, applying switches to filter files, set passwords, manage paths, and control overwrite behavior. File lists via @listfiles enable batch extraction, while options like -p for passwords and -x for exclusions process archive contents according to specified criteria before decompressing to the target path.
Installation
sudo apt install unrar-nonfreeFlags
Examples
unrar e archive.rarunrar x archive.rarunrar l archive.rarunrar p archive.rar file.txtunrar t archive.rarunrar v archive.rarunrar x archive.rar @listfiles.txt path_to_extract/unrar e -p<password> archive.rar