Linux RAR 安裝和使用詳細說明

來源:互聯網
上載者:User

描述:Linux預設內建ZIP壓縮,最大支援4GB壓縮,RAR的壓縮比大於4GB. 
流程:下載 》安裝 》 使用 
-------------------------------------------------- 下載 
# wget http://www.rarsoft.com/rar_CN/rarlinux-3.9.3.tar.gz 
--16:01:50--  http://www.rarsoft.com/rar_CN/rarlinux-3.9.3.tar.gz 
Resolving www.rarsoft.com... 217.70.129.242 
Connecting to www.rarsoft.com|217.70.129.242|:80... connected. 
HTTP request sent, awaiting response... 200 OK 
Length: 833828 (814K) [application/x-gzip] 
Saving to: `rarlinux-3.9.3.tar.gz' 

100%[=======================================>] 833,828     34.5K/s   in 29s    

16:02:22 (28.2 KB/s) - `rarlinux-3.9.3.tar.gz' saved [833828/833828] 

-------------------------------------------------- 查看目錄列表 
# ls 
rarlinux-3.9.3.tar.gz 

-------------------------------------------------- 解壓 tar.gz 
# tar -xzvf rarlinux-3.9.3.tar.gz 
rar/ 
rar/readme.txt 
rar/default.sfx 
rar/whatsnew.txt 
rar/license.txt 
rar/order.htm 
rar/rar 
rar/unrar 
rar/rar_static 
rar/technote.txt 
rar/rarfiles.lst 
rar/makefile 
rar/rar.txt 

-------------------------------------------------- 查看目錄列表 
# ls 
rar 
rarlinux-3.9.3.tar.gz 

-------------------------------------------------- 切換目錄 
# cd rar 

-------------------------------------------------- 編譯檔案 
# make 
mkdir -p /usr/local/bin 
mkdir -p /usr/local/lib 
cp rar unrar /usr/local/bin 
cp rarfiles.lst /etc 
cp default.sfx /usr/local/lib 

-------------------------------------------------- 安裝編譯檔案 
# make install 
mkdir -p /usr/local/bin 
mkdir -p /usr/local/lib 
cp rar unrar /usr/local/bin 
cp rarfiles.lst /etc 
cp default.sfx /usr/local/lib 

-------------------------------------------------- 執行rar協助命令 
# rar --help 
rar: /lib/libc.so.6: version `GLIBC_2.7' not found (required by rar) 

-------------------------------------------------- 添加全域命令 
# cp -f rar_static /usr/local/bin/rar 
cp: overwrite `/usr/local/bin/rar'? y 

-------------------------------------------------- 即可訪問 rar 命令 
# rar --help 
RAR 3.93   Copyright (c) 1993-2010 Alexander Roshal   15 Mar 2010 
Shareware version         Type RAR -? for help 

Usage:     rar <command> -<switch 1> -<switch N> <archive> <files...> 
               <@listfiles...> <path_to_extract\> 

<Commands> 
  x             Extract files with full path 

-------------------------------------------------- 解壓所有檔案包括路徑 
# rar x filename.rar

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.