linux下rar的安裝

tonykorn97發表於2006-07-08

1,下載軟體。我下載軟體的名稱是:rarlinux-3.6.b6.tar.gz


2,解壓:

[root@tonykorn97 linux tools]# ls
firefox-1.5.0.4.tar.gz nessus rarlinux-3.6.b6.tar.gz vnc
lumaqq_2006M2-win32_x86_no_jre_PConline.zip openssl-0.9.7a-5.1.src.rpm rdesktop-1.3.0-1jdl.i386.rpm
[root@tonykorn97 linux tools]# gzip -d rarlinux-3.6.b6.tar.gz
[root@tonykorn97 linux tools]# ls
firefox-1.5.0.4.tar.gz nessus rarlinux-3.6.b6.tar vnc
lumaqq_2006M2-win32_x86_no_jre_PConline.zip openssl-0.9.7a-5.1.src.rpm rdesktop-1.3.0-1jdl.i386.rpm
[root@tonykorn97 linux tools]# tar -xvf rarlinux-3.6.b6.tar
rar/
rar/file_id.diz
rar/license.txt
rar/Makefile
rar/order.htm
rar/rarfiles.lst
rar/rar.txt
rar/readme.txt
rar/technote.txt
rar/whatsnew.txt
rar/rar
rar/rar_static
rar/unrar
rar/default.sfx
[root@tonykorn97 linux tools]# ls
firefox-1.5.0.4.tar.gz nessus rar rdesktop-1.3.0-1jdl.i386.rpm
lumaqq_2006M2-win32_x86_no_jre_PConline.zip openssl-0.9.7a-5.1.src.rpm rarlinux-3.6.b6.tar vnc
[root@tonykorn97 linux tools]#

3,編譯

[root@tonykorn97 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

4,使用

[root@tonykorn97 ~]# ls
anaconda-ks.cfg Desktop install.log install.log.syslog rar
[root@tonykorn97 ~]# rar a 1 install.log

RAR 3.60 beta 6 Copyright (c) 1993-2006 Alexander Roshal 3 Jul 2006
Shareware version Type RAR -? for help

Evaluation copy. Please register.

Creating archive 1.rar

Adding install.log OK
Done
[root@tonykorn97 ~]# ls
1.rar anaconda-ks.cfg Desktop install.log install.log.syslog rar
[root@tonykorn97 ~]# unrar e 1.rar

UNRAR 3.60 beta 6 freeware Copyright (c) 1993-2006 Alexander Roshal


Extracting from 1.rar

Extracting install.log OK
All OK
[root@tonykorn97 ~]#

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/312079/viewspace-245348/,如需轉載,請註明出處,否則將追究法律責任。

相關文章