fedora10 rar命令安装

简介:    默认,fedora10是没有RAR命令的,此时你如果不小心下了一下 .rar格式的压缩包你就惨了!下面由哥来教你如果解决这些问题。一、第一部分 哥手把手教你安装ARM-LINUX1、下载RAR 4.
   默认,fedora10是没有RAR命令的,此时你如果不小心下了一下 .rar格式的压缩包你就惨了!
下面由哥来教你如果解决这些问题。

一、第一部分 哥手把手教你安装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

  1. [root@localhost 下载]# tar xvf rarlinux-4.0.0.tar.gz
  2. rar/
  3. rar/readme.txt
  4. rar/default.sfx
  5. rar/whatsnew.txt
  6. rar/license.txt
  7. rar/order.htm
  8. rar/rar
  9. rar/unrar
  10. rar/rar_static
  11. rar/technote.txt
  12. rar/rarfiles.lst
  13. rar/makefile
  14. rar/rar.txt
  15. [root@localhost 下载]#

3、安装
rarlinux-4.0.0.tar.gz


  1. [root@localhost 下载]# cd rar
  2. [root@localhost rar]# ls
  3. default.sfx makefile rar rar_static readme.txt unrar
  4. license.txt order.htm rarfiles.lst rar.txt technote.txt whatsnew.txt
  5. [root@localhost rar]# make
  6. mkdir -p /usr/local/bin
  7. mkdir -p /usr/local/lib
  8. cp rar unrar /usr/local/bin
  9. cp rarfiles.lst /etc
  10. cp default.sfx /usr/local/lib
  11. [root@localhost rar]#

第二部分 哥带你小试一下RAR-LINUX的几条命令

1、解压文件到当前目录

  1. [root@localhost 下载]# ls
  2. rarlinux-4.0.0.tar.gz test1.rar test2.rar

  3. [root@localhost 下载]# rar e test1.rar

  4. RAR 4.00 Copyright (c) 1993-2011 Alexander Roshal 2 Mar 2011
  5. Shareware version Type RAR -? for help


  6. Extracting from test1.rar

  7. Extracting fopen.c OK
  8. Extracting fopen.txt OK
  9. Extracting Makefile OK
  10. All OK
  11. [root@localhost 下载]# ls
  12. fopen.c fopen.txt Makefile rarlinux-4.0.0.tar.gz test1.rar test2.rar
  13. [root@localhost 下载]#

2、解压文件到指定目录

  1. [root@localhost 下载]# ls
  2. rarlinux-4.0.0.tar.gz test1.rar test2.rar
  3. [root@localhost 下载]# ls /home/                     -------解压前/home目录的悲剧现场  
  4. daya dyli linux-c-program
  5. [root@localhost 下载]# rar x test2.rar /home/  -------命令

  6. RAR 4.00 Copyright (c) 1993-2011 Alexander Roshal 2 Mar 2011
  7. Shareware version Type RAR -? for help


  8. Extracting from test2.rar

  9. Creating /home/fopen OK
  10. Extracting /home/fopen/fopen.c OK
  11. Extracting /home/fopen/fopen.txt OK
  12. Extracting /home/fopen/Makefile OK
  13. All OK
  14. [root@localhost 下载]# ls /home/               -------解压后/home目录的完美现场
  15. daya dyli fopen linux-c-program
  16. [root@localhost 下载]# ls /home/fopen/
  17. fopen.c fopen.txt Makefile
  18. [root@localhost 下载]#

























相关文章
|
28天前
|
Linux
linux yum 安装rar和unrar
linux yum 安装rar和unrar
72 0
Linux CentOS 平台安装 rar unrar 命令
Linux CentOS 平台安装 rar unrar 命令
|
Linux
centos下的rar解压
centos下的rar解压
250 0
|
Ubuntu 数据安全/隐私保护
Ubuntu tar 命令
Ubuntu tar 命令
182 0
|
Java Linux
实用的Linux 安装 zip unzip
实用的Linux 安装 zip unzip
1160 0
|
Linux
【Linux】CentOS7上解压zip需要安装uzip
1、安装zip、unzip应用 yum install zip unzip   2、压缩和解压文件   以下命令均在/home目录下操作    cd /home #进入/home目录  a、把/home目录下面的mydata目录压缩为mydata.
2110 0