unar is the command interface for The Unarchiver (http://wakaba.c3.cx/s/apps/unarchiver.html) and supports extracting .rar archives with a free implementation (unlike rarlab's unrar) and with support for RARv3 (unlike Gna unrar). Please consider checking for 'unar' when extracting a .rar archive :)