Mac 解压 rar包 Apple OS X: Open .Rar File /

系统 1378 0

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 http://www.rarlab.com/rar/rarosx-3.9.3.tar.gz
    

 

Untar the tar ball, enter:

      tar -zxvf output.tar.gz
    

 

Sample outputs:

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

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

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 "BOMArchiveHelper.app", 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

 

来源:http://www.cyberciti.biz/faq/unrar-apple-os-x-command-line-gui-tools/

 

 

 

Mac 解压 rar包 Apple OS X: Open .Rar File / Extract rar


更多文章、技术交流、商务合作、联系博主

微信扫码或搜索:z360901061

微信扫一扫加我为好友

QQ号联系: 360901061

您的支持是博主写作最大的动力,如果您喜欢我的文章,感觉我的文章对您有帮助,请用微信扫描下面二维码支持博主2元、5元、10元、20元等您想捐的金额吧,狠狠点击下面给点支持吧,站长非常感激您!手机微信长按不能支付解决办法:请将微信支付二维码保存到相册,切换到微信,然后点击微信右上角扫一扫功能,选择支付二维码完成支付。

【本文对您有帮助就好】

您的支持是博主写作最大的动力,如果您喜欢我的文章,感觉我的文章对您有帮助,请用微信扫描上面二维码支持博主2元、5元、10元、自定义金额等您想捐的金额吧,站长会非常 感谢您的哦!!!

发表我的评论
最新评论 总共0条评论