下面由哥来教你如果解决这些问题。
一、第一部分 哥手把手教你安装ARM-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
- [root@localhost 下载]# tar xvf 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 下载]# cd rar
-
[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 下载]#