How can I extract .rar files on the Mac?

176

34

Is there anything built-in that does this? (E.g. command line tools.) Or are there any third-party apps?

Update: I like The Unarchiver, but vote up your favourite, or add it as an answer if it isn’t there.

Paul D. Waite

Posted 2009-10-07T08:44:31.133

Reputation: 4 864

Question was closed 2012-08-26T17:51:50.860

3seems weird that this was closed? this is a common superuser problem on mac – mendota – 2019-02-12T18:57:28.607

Answers

110

The Unarchiver really does it's job well (and it's also completely free). From the site:

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. The Unarchiver uses the libxad unarchiving library to support many older, obscure formats.

alex

Posted 2009-10-07T08:44:31.133

Reputation: 16 172

Note, that the Mac App Store version is much more annoying that the one from the website. It asks you for your permission every time when you extract an archive! Use the one from the official website. – cubuspl42 – 2015-11-08T16:13:35.407

Great suggestion! Thanks! The Unarchiver is good. – IMJS – 2018-07-25T10:09:33.367

3

And you can use it from the command line -- just say 'open foo.rar' or download the command line tools: http://superuser.com/questions/190053/universal-command-line-unarchiving-tool-on-a-mac

– tgdavies – 2012-05-11T14:03:03.667

8My word, that really is a gorgeous bit of software. No interface but the preferences window. Does its job automatically when you want it to, stays out of the way the rest of the time. – Paul D. Waite – 2009-10-07T12:30:43.240

3It really is incredibly easy to use. That's why I always recommend it :) – alex – 2009-10-07T14:25:09.810

308

Using Homebrew, in a terminal type:

brew install unrar

to use it just navigate to your file and type

unrar x <filename>

Or list files via unrar l archive.rar and extract single file: unrar e archive.rar folder/file.exe desired_location/

johnnymonster

Posted 2009-10-07T08:44:31.133

Reputation: 3 189

How do I unrar to a specific directory – rocketspacer – 2018-04-19T07:54:42.217

1CLI is good for programmer. – g10guang – 2019-02-20T15:45:09.713

14

Just for completeness: Fink, MacPorts, Rudix and Homebrew provide versions of the command-line unrar.

The Rudix version is a binary, which means that you don't even need XCode or GCC to install it.

Telemachus

Posted 2009-10-07T08:44:31.133

Reputation: 5 695

6

Nothing built-in if I'm not mistaken (no access to a Mac now).

RAR has a command line version for Mac OS X. UnRarX is a GUI program to extract RAR files.

UPDATE: UnRarX is now deprecated and it's site is down.

Snark

Posted 2009-10-07T08:44:31.133

Reputation: 30 147

4

As far as well-regarded, RARLab's commandline for MacOSX is the best. It is not free, but there is free (-as-in-beer) official unrar tool (source code available here) that supports all RAR formats. You may be able to find a precompiled version somewhere if you don't want to compile it yourself.

There's also a free-as-in-speech unrar tool but that doesn't support the latest RAR3 format.

quack quixote

Posted 2009-10-07T08:44:31.133

Reputation: 37 382

4

I found The Unarchiver as mentioned to be great for about 80% of the RAR files I run into. The other almost "perfect" RAR extractor would be RAR Expander My only complaint is it doesn't automatically quit after extraction.

Josh K

Posted 2009-10-07T08:44:31.133

Reputation: 11 754

Aha: what sort of issues does it have with the other 20%? I did notice some recent release notes said “RAR bug fixes”, so that’s pretty good evidence that there are (or at least were) RAR issues. – Paul D. Waite – 2009-10-07T12:43:19.143

It just said "contents could not be extracted with this program." Weird, but I've learned to deal with it. The Unarchiver is set as my default, so much better then the built in BOM. – Josh K – 2009-10-07T12:58:44.527

they're probably using their own code (or basing off the open-source). so there may be format incompatibilities with the latest RAR format. – quack quixote – 2009-10-07T13:59:22.270

1

If you buy Pathfinder, which is relatively costly ($39) but solves a whole different set of problems, it comes with .rar expansion thanks to StuffIt. This sounds like an absurd answer, however I can't use my Mac without Pathfinder anymore. So I have .rar expansion built-in :)

Dan Rosenstark

Posted 2009-10-07T08:44:31.133

Reputation: 5 718

@Josh K, this was true in 2009, but now SSDs and bootup are much faster, at least. – Dan Rosenstark – 2011-09-01T20:28:14.807

Not everyone (and by that I mean a majority of Mac users) don't have SSD's. Pathfinder is still–in my opinion–overkill on a system. – Josh K – 2011-09-02T00:25:32.593

That's true @Josh K, it's a hassle to start up, but I don't think the memory or processing footprint is significant. But this is an empirical question: what do you want to compare it to? – Dan Rosenstark – 2011-09-03T02:24:22.073

Nothing really to compare it to. They took Finder and added a bunch more stuff to click on. – Josh K – 2011-09-03T06:02:35.263

Pathfinder is overkill if you are just extracting RAR files. Booting it up takes a while too. It's great for integration at the expense of Finder. – Josh K – 2009-10-07T13:02:25.117

1

MacPar Deluxe will handle RAR files quite easily....

MacPAR deLuxe is a utility program that runs on the Apple Macintosh. It is useful to you if you download (or upload) binary files from internet newsgroups (a.k.a. “usenet”). Often, binary content comes in the form of sets of many files that together form a “rar” archive. MacPAR deLuxe assist you in combining these files after the download finishes. •It verifies that the file set is complete, and all files are undamaged. MacPAR deLuxe can recover missing information by processing so called "par" and "par2" files. •After the verification step, MacPAR deLuxe unpacks the data. If possible with its built-in unrar engine, or otherwise by launching the appropriate program.

The program automatically cooperates with Loek Jehee's Split & Concat. Features •Full support for the "par 1" and "par 2" standards. •Perform verification, recovery and automatic unrar (if applicable) by just double-clicking the ".par" or ".par2" file in the Finder. •Get a clear overview of the status of all files (see example screenshots). •Create a par or par2 volume set by dragging files to the window and simply save the document. •Open a rar archive and unpack the files inside. •Can automatically start an external program to process files in the par set. •Can open multiple windows and run multiple jobs at the same time. •Alternatively, multiple jobs can be queued and processed one after the other, to save machine overhead. •Many configurable options. •Fully compatible with "other" par and rar utilities. •Extensive documentation included via the "Help" menu. •Shareware: you can make make a donation if you like the program.

Benjamin Schollnick

Posted 2009-10-07T08:44:31.133

Reputation: 4 313