解压:tar xvf fileName.tar
压缩:tar cvf fileName.tar directoryName

下载RAR https://www.rarlab.com/download.htm安装包(建议下载RAR 5.80 beta 1 for macOS (64 bit) 否则安装了可能无法使用), cd 到Downloads目录解压下载的.tar.gz

  1. taodeMacBook-Pro:Downloads tao$ tar zxvf rarlinux-x64-5.8.b1.tar.gz

cd 到解压后到rar目录下只需下面命令进行安装

  1. taodeMacBook-Pro:rar tao$ sudo install -c -o $USER rar /usr/local/bin
  1. # 或者使用 sudo install -c -o $USER unrar /usr/local/bin 进行安装
  2. taodeMacBook-Pro:Desktop tao$ brew install unrar
  3. ==> Downloading https://homebrew.bintray.com/bottles/unrar-5.7.5.mojave.bottle.t
  4. ==> Downloading from https://akamai.bintray.com/8d/8d30a945be9a3b5a668d3c558f40d
  5. ######################################################################## 100.0%
  6. ==> Pouring unrar-5.7.5.mojave.bottle.tar.gz
版权声明:本文为dengxiaoning原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/dengxiaoning/p/11681253.html