How can I extract .rar files on the Mac?
Solution 1
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.
Solution 2
Using Homebrew, in a terminal type:
brew install rar
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/
Solution 3
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.
Solution 4
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.
Solution 5
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.
Related videos on Youtube
CNJ
Updated on September 17, 2022Comments
-
CNJ over 1 year
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.
-
mendota about 5 yearsseems weird that this was closed? this is a common superuser problem on mac
-
-
CNJ over 14 yearsAha: 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.
-
Josh K over 14 yearsPathfinder 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.
-
quack quixote over 14 yearsthey're probably using their own code (or basing off the open-source). so there may be format incompatibilities with the latest RAR format.
-
alex over 14 yearsIt really is incredibly easy to use. That's why I always recommend it :)
-
Dan Rosenstark over 12 years@Josh K, this was true in 2009, but now SSDs and bootup are much faster, at least.
-
Josh K over 12 yearsNot 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.
-
tgdavies almost 12 yearsAnd you can use it from the command line -- just say 'open foo.rar' or download the command line tools: superuser.com/questions/190053/…
-
cubuspl42 over 8 yearsNote, 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.
-
rocketspacer about 6 yearsHow do I unrar to a specific directory
-
IMJS almost 6 yearsGreat suggestion! Thanks! The Unarchiver is good.
-
g10guang about 5 yearsCLI is good for programmer.
-
Tom over 3 years@rocketspacer: you can optionally specify a path to extract to; run
unrar
without any arguments to see more details. -
Linus over 3 yearsSadly "unrar was deleted from homebrew/core in commit 3f8c7632a6: unrar: remove (incompatible license) See fedoraproject.org/wiki/Licensing:Unrar"
-
buncis over 3 yearsany alternatives? unrar is no more in brew
-
user128048 over 3 yearsDue to unrar was removed from homebrew, I use 7z instead:
brew install p7zip
and then7z x <filename.rar>
-
sligocki about 3 years
unrar
doesn't exist any more in homebrew. Butbrew install rar
provides anunrar
tool.