fedora10下安装rar命令
fedora10默认是没有RAR命令的,如果你想解压.rar格式的文件,就得想办法先安装一个rar解压软件了。
本文介绍fedora10中安装rar命令的方法,供大家学习参考。
一、安装RAR-LINUX
1、下载RAR 4.00 for Linux这个文件
http://www.rarlab.com/rar/rarlinux-4.0.0.tar.gz
2、解压rarlinux-4.0.0.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
[root@localhost 下载]#
3、安装rarlinux-4.0.0.tar.gz
[root@localhost rar]# ls
default.sfx makefile rar rar_static readme.txt unrar
license.txt order.htm rarfiles.lst rar.txt technote.txt whatsnew.txt
[root@localhost 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
[root@localhost rar]#
二、RAR-LINUX的几条命令
1、解压文件到当前目录
[root@localhost 下载]# ls
rarlinux-4.0.0.tar.gz test1.rar test2.rar
[root@localhost 下载]# rar e test1.rar
RAR 4.00 Copyright (c) 1993-2011 Alexander Roshal 2 Mar 2011
Shareware version Type RAR -? for help
Extracting from test1.rar
Extracting fopen.c OK
Extracting fopen.txt OK
Extracting Makefile OK
All OK
[root@localhost 下载]# ls
fopen.c fopen.txt Makefile rarlinux-4.0.0.tar.gz test1.rar test2.rar
[root@localhost 下载]#
2、解压文件到指定目录
[root@localhost 下载]# ls
rarlinux-4.0.0.tar.gz test1.rar test2.rar
[root@localhost 下载]# ls /home/---解压前/home目录的悲剧现场
daya dyli linux-c-program
[root@localhost 下载]# rar x test2.rar /home/ ---命令
RAR 4.00 Copyright (c) 1993-2011 Alexander Roshal 2 Mar 2011
Shareware version Type RAR -? for help
Extracting from test2.rar
Creating /home/fopen OK
Extracting /home/fopen/fopen.c OK
Extracting /home/fopen/fopen.txt OK
Extracting /home/fopen/Makefile OK
All OK
[root@localhost 下载]# ls /home/ ---解压后/home目录的完美现场
daya dyli fopen linux-c-program
[root@localhost 下载]# ls /home/fopen/
fopen.c fopen.txt Makefile
[root@localhost 下载]#
您可能感兴趣的文章: