Apple OS X: Open .Rar File / Extract rar

I know how to open .rar file under Linux, but how do you open .rar file under Apple OS X UNIX using command line and GUI tools options?

The unrar command or gui tools are not supported out of the box. Use the following instructions install the same:

unrar Command Line Tool

You need to download unrar by visiting this page and look for OS X version. Alternativly, you can open the terminal and type the following command to download the same:

cd /tmp
curl -o output.tar.gz

Untar the tar ball, enter:

tar -zxvf output.tar.gz

Sample outputs:

Fig.01: Unrar Installation - OS X .Rar Extractor

You need to copy rar and unrar command to /bin directory, type the following commands:
sudo cp -v /tmp/rar/{rar,unrar} /bin
rm -rf /tmp/rar

Sample outputs:

Fig.02: Copying files to /bin under OS X

How Do I Use Unrar Command Line?

You can use the unrar command as follows:

Task: Extract Files

The syntax is as follows to open or unrar file in current directory:

unrar e file.rar 
ls -l

Task: List (l) File Inside Rar Archive

unrar l file.rar

Task: To Extract (x) Files With Full Path

unrar x file.rar

Task: To Test (t) Integrity Of Archive

unrar t file.rar

To see all support command line options type:
unrar | less

GUI App: The Unarchiver

You can use “The Unarchiver” is free software and it is a much more capable replacement for “”, the built-in archive unpacker program in Mac OS X. The Unarchiver is designed to handle many more formats than BOMArchiveHelper, and to better fit in with the design of the Finder. Supported file formats include Zip, Tar-GZip, Tar-BZip2, RAR, 7-zip, LhA, StuffIt and many other more and less obscure formats. The goal is to make The Unarchiver able to extract anything you give it.
=> Download The Unarchiver

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 2 comments so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
2 comments… add one
  • fidel May 18, 2010 @ 9:24

    ‘keka’ is another free (un)archiver for Mac OS X

    Best Regards

  • romain Paroz Nov 17, 2013 @ 18:57

    Hello, how do you do for unrar without password on a mac??

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum