Mac WinRAR

Environment

Mac OS Sierra 10.12.3

WinRAR 5.4.0

Solution

Step 1. Download rarosx-5.4.0.tar.gz from http://www.rarlab.com/download.htm

Step 2. cd to the directory and extract

tar -xf rarosx-5.4.0.tar.gz

Step 3. cd ./rar and install rar & unrar to /usr/local/bin (if no this directory, mkdir it)

sudo install -c -o $USER unrar /usr/local/bin

sudo install -c -o $USER rar /usr/local/bin

Step 4. Done

Extract File

unrar x [RAR Archive]

rar x [RAR Archive]

Compress File

rar a [RAR Archive] [Files 欲壓縮的檔案]

ex. rar a myfile * → 會壓出 myfile.rar

Reference

http://best-mac-tips.com/2013/02/02/extract-rar-archive-command-line-mac-terminal/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s