Solve the rarfile decompression problem under Fedora15

Source: Internet
Author: User
Because I use both Linux and Windows 7 systems, sometimes I have to open the rarfile under Windows 7. You can't open the archive manager directly. The type is unknown. Then I went down to rarforlinux and solved the problem. 1. Download the corresponding winrarforlinux. I have 64-bit rarlinux-x64-4.1.b2.tar.gz. 2. decompress the file [root @ Fedora15 download] # tar-zxvfrarlinux

Because I use both Linux and Windows 7, sometimes I need to open the rarfile under Windows 7. You can't open the archive manager directly. The type is unknown. Later I went to rar for linux to solve the problem.

1, download the corresponding winrar for linux here. I am a 64-bit rarlinux-x64-4.1.b2.tar.gz.

2. decompress the file

[Root @ Fedora15 download] # tar-zxvf rarlinux-x64-4.1.b2.tar.gz. A rar directory is generated in the current directory.

3. make: copy the execution file to the/usr/local/bin/directory. We can do this without executing make, you only need to specify the command path before extracting the file. For example,./home/sunjiebin/download/rar/unrar.

[Root @ fedora15 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. display the Help file, which is very simple. Run rar directly, and unrar will display the help information.

 

5. rar a compressed file

[Root @ fedora15 aa] # rar a test AB .rar FunshionInstall_C114908.exe AB


RAR 4.10 beta 2 Copyright (c) 1993-2011 Alexander Roshal 20 Oct 2011

Shareware version Type RAR -? For help


Evaluation copy. Please register.


Creating archive test.rar


Adding AB .rar OK

Adding FunshionInstall_C114908.exe OK

Adding AB OK

Done

[Root @ fedora15 aa] # ls

AB AB .rar FunshionInstall_C114908.exe test.rar use cmd.txt

[Root @ fedora15 aa] # ls

AB AB .rar FunshionInstall_C114908.exe test.rar use cmd.txt

 

6. rar v: View compressed files

[Root @ fedora15 aa] # rar v test.rar


RAR 4.10 beta 2 Copyright (c) 1993-2011 Alexander Roshal 20 Oct 2011

Shareware version Type RAR -? For help


Archive test.rar


Pathname/Comment

Size Packed Ratio Date Time Attr CRC Meth Ver

-------------------------------------------------------------------------------

AB .rar

5439690 5453483 08-11-11-rwxrwxrwx F8141B00 m3g 100%

FunshionInstall_C114908.exe

5457128 5439566 99% 03-10-11-rwxrwxrwx 63926BD5 m3g 2.9

AB

0 0 0% 08-11-11 drwxrwxrwx 00000000 m0 2.0

-------------------------------------------------------------------------------

3 10896818 10893049 99%

 


7. Extract rar x to the specified folder.

[Root @ fedora15 aa] # mkdir dir

[Root @ fedora15 aa] # rar x test.rar./dir


RAR 4.10 beta 2 Copyright (c) 1993-2011 Alexander Roshal 20 Oct 2011

Shareware version Type RAR -? For help

 

Extracting from test.rar


Extracting./dir/AB .rar OK

Extracting./dir/FunshionInstall_C114908.exe OK

Creating./dir/AB OK

All OK

[Root @ fedora15 aa] # ls dir

AB AB .rar FunshionInstall_C114908.exe

You can also use rar e to decompress the file to the current directory.

[Root @ fedora15 dir] # rar e ../AB .rar


RAR 4.10 beta 2 Copyright (c) 1993-2011 Alexander Roshal 20 Oct 2011

Shareware version Type RAR -? For help

 

Extracting from ../AB .rar


Extracting FunshionInstall_C114908.exe OK

All OK

[Root @ fedora15 dir] # ls

FunshionInstall_C114908.exe

 

In addition, after installing rar, you can directly open the rarfile In The gnome desktop environment. Because "ARCHIVE manager" will automatically search and associate relevant commands to open it! It cannot be opened when it is not installed.

Now, rar will talk about this.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.