How to Install Winrar on Mac & Use it with Command Line

Do you want install winrar on mac for opening .RAR file? WinRar software is indeed available for Mac, but only for command line and it has no GUI interface.


You’ve just already downloaded archive files from website or received attachment file from e-mail in .RAR format. You need to open the file format on your Mac OS X, but you don’t know what to do.

Then, how are the steps to open/extract .rar archive file on Mac OS X?

Notes: Mac actually has a build-in app called Archive Utility; but the application does not support .RAR file format archive.

Therefore, for the RAR file types we need additional third-party applications.

If you are a user of Windows PC, you know that WinRar works to compress and extract files with .RAR format.

Anyway, can we install WinRar software on Mac?

Yes, we can, but …

WinRar software is indeed available for Mac…

… but only for command line and it has no GUI interface …

If you are not familiar with terminal and the command line, you should use alternative application.

How to install Winrar on Mac

  1. Download RAR for Mac OSX from site
    Download WinRAR for Mac OSX
  2. Extract rarosx-x.x.x.tar.gz. with Secondary Click (Click or tap with 2 fingers) on rarosx-x.x.x.tar.gz file and open with Archive Utility.
  3. Copy the 4 files from that extracted, which are default.sfx, rar, rarfiles.lst, unrar.
    copy rar files
  4. From menu Finder, Go -> Go to Folder -> “/usr/local/bin”.
    go to the folder
  5. Paste the 4 files to folder bin. (password required)

How to Use WinRar Command on Mac


rar  - -
 <@listfiles...> <path_to_extract\>

RAR Command Line


How to make Files Archive RAR

rar a Pictures.rar Bitmaps

The following command will add all files from the directory Bitmaps and its subdirectories to the RAR archive Pictures.rar

How to extract RAR (unrar) files


unrar  - -
 <@listfiles...> <path_to_extract\>>

UNRAR Command Line

unrar x file.rar

Those commands will automatically extract file archive .rar file with directory File folder.

Winrar Command Help

To obtain the more complete form of syntax command help about rar and unrar with WinRar, you can do it by simply type rar or unrar and then press enter.

RAR -? or UNRAR -?

Winrar Alternative for Mac

As alternative solution for you who are not familiar with command line in terminal, you can use some alternative applications for WinRar which has GUI Interface, some of them are:

  • Unrar. This application is only used to extract file with .RAR format. You can use it to compress file/folder to .RAR format.
  • Keka. This application is the development of 7-zip for Mac OS X. It supports more file type(*) than Unrar does.

Keka is the best alternative to winrar for mac, because…

Compression formats supported: 7z, Zip, Tar, Gzip, Bzip2, DMG, ISO.
Extraction formats supported: RAR, 7z, Lzma, xz, Zip, Tar, Gzip, Bzip2, ISO, EXE, CAB, PAX, ACE (PPC)

Easier. With the application above, you will find it easier to extract .RAR file with only double click so you don’t need to open terminal and type syntax command line.


The available Winrar for Mac OSX has no GUI Interface and it can be used only through command line.

With WinRar application you can compress and extract file archive for .RAR type.

If you are not accustomed with command line, you’d better use alternative application like Keka.

About the author: Bambang Oke, Windows User and Mac Lovers. Try to give the best tips and tricks for each of the issues surrounding the computer and gadget

{ 2 comments… add one }
  • Bart


    I was able to get both the rar and unrar command lines to work, but at some point when I try to use unrar I get the following:

    Would you like to replace the existing file /Users/Bart/Documents/.DS_Store
    18436 bytes, modified on 2016-06-28 01:02
    with a new one
    18436 bytes, modified on 2016-06-28 01:00

    [Y]es, [N]o, [A]ll, n[E]ver, [R]ename, [Q]uit e

    The .DS_Store is not part of the file extension that I want to unzip, and whatever I select in terms of options the .rar file is not unzipped. Any help with this would be appreciated.

    • bambangoke

      It’s mean that in folder /Users/Bart/Documents/ have .DS_Store and in your rar file also contain .DS_Store file.

      You can replace by answering y for yes or n for no.

Leave a Comment