sudo apt-get install unrar # unrar-free?
unrar v "the name.rar"
unrar e myfile.rar # extract into the current directory unrar e myfile.rar /tmp # extract to the target directory
if you gave it a password and you forgot it (this just uses unrar over and over with brute force)...
sudo su
apt-get install libxml2-dev build-essential # prerequisites to build from source
http://rarcrack.sourceforge.net/ # download link in there somewhere
tar -xjf rarcrack-0.2.tar.bz2
cd rarcrack-0.2
make # ignore all of the warnings
gcc -pthread rarcrack.c xml2-config --libs --cflags
-O2 -o rarcrack
rarcrack.c: In function ‘crack_thread’:
rarcrack.c:206:32: warning: comparison between pointer and integer [enabled by default]
rarcrack.c: In function ‘init’:
rarcrack.c:283:6: warning: format ‘%s’ expects argument of type ‘char ’, but argument 3 has type ‘char ()[300]’ [-Wformat]
rarcrack.c:317:9: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
rarcrack.c: In function ‘crack_thread’:
rarcrack.c:205:11: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
make install install -s rarcrack /usr/bin mkdir -p /usr/share/doc/rarcrack chmod 755 /usr/share/doc/rarcrack install -m 644 -t /usr/share/doc/rarcrack CHANGELOG LICENSE README README.html RELEASE_NOTES
rarcrack test.rar --type rar # this autogenerates test.rar.xml where the status of successful brute force passwords are saved