經常遇到需要上傳多個壓縮檔案到linux伺服器,而檔案在windows下面的zip壓縮限制了壓縮封包件個數,這個時候需要在linux伺服器上面安裝支援rar解壓縮的工具
安裝軟體
tar zxvf rarlinux-3.7.0.tar.gz
cd rar
make
使用軟體解壓縮
rar e test.rar extract files to current directory.
rar x test.rar extract files with full path.
其他指令檢視壓縮包内的rar.txt
執行rar指令時出現如下提示
rar: /lib/tls/libc.so.6: version `glibc_2.4' not found (required by rar)
則用rar檔案中提供的 rar_static(static linking版本,不會有 glibc 程式庫版本不和的問題)
執行指令:
cp rar_static /usr/local/bin/rar
測試成功。