Install unrar software on Fedora
Reprinted from: http://blog.163.com/jifei881121@126/blog/static/34915259201083032413632/
#
Yum install unrar
Load plug-in: refresh-packagekit
Set the installation process
Analyze the installation parameter syntax
No package unrar available.
#
Rpm-uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
# Rpm-uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
# Yum install unrar
Load plug-in: refresh-packagekit
Rpmfusion-nonfree-Updates | 2.7 kb
Rpmfusion-nonfree-updates/primary_db | 81 KB
Rpmfusion-free-Updates | 2.7 kb: 00
Rpmfusion-free-updates/primary_db | 158 KB
Rpmfusion-free | 2.7 kb
Rpmfusion-free/primary_db | 212 KB
Using [errno-1] metadata file does not match checksum
Try other images.
Rpmfusion-free/primary_db | 212 KB
Rpmfusion-nonfree | 2.7 kb: 00
Rpmfusion-nonfree/primary_db | 68 KB
Set the installation process
Analyze the installation parameter syntax
Solve dependency problems
--> Run the processing check
---> Package unrar. i386. 7.8-3. fc10 is set to upgrade
--> Complete dependency check
Dependency Solution
================================================= ========================================================== ====< br> package architecture version warehouse size
======================== ========================================================== ===============< br> installing:
unrar i386 3.7.8-3. fc10 rpmfusion-nonfree 109 k
Transaction Summary
========================================================== ==========================================================
Install 1 package (s)
Update 0 package (s)
Remove 0 package (s)
Total download size: 109 KB
Are you sure you want? [Y/n]: Y
Download the software package:
Unrar-3.7.8-3.fc10.i386.rpm | 109 KB
Warning: rpmts_hdrfromfdno: Header V3 DSA Signature: nokey, key ID b1981b68
Rpmfusion-nonfree/gpgkey | 1.7 kb
Import GPG key 0xb1981b68 "rpm fusion repository (Fedora-nonfree) <rpmfusion-buildsys@lists.rpmfusion.org>" from/etc/pki/rpm-GPG-key-rpmfusion-nonfree-Fedora
Are you sure you want? [Y/n]: Y
Run rpm_check_debug
Run test Transaction Processing
Transmission test completed
Transaction processing test successful
Run Transaction Processing
Installing: unrar 1/1
Installed:
Unrar. i386. 7.8-3. fc10
Congratulations! Completed successfully!
--------------------
Operations related to decompression under Fedora
The following content is reproduced on the Internet for personal learning only.
For those who are new to Linux, they will surely get dizzy with a bunch of various file names in Linux. For example, we know that there are only two common types of compressed files in Windows: Zip and. Rap. However, linux.tar.gz+tgz%bz2%.z%.tar and so on. This article is just a glimpse of these compressed files. I hope you will not be confused when you find these files. icon_smile.gif
Before summarizing various types of compressed files, we should first clarify two concepts: Packaging and compression. Packaging refers to converting a large number of files or directories into a total file. Compression refers to compressing a large fileAlgorithmTo a small file. Why do we need to differentiate these two concepts? In fact, this is due to a lot of compression in Linux.ProgramOnly one file can be compressed. When you want to compress a large number of files, you must first compress these files into a package using another tool, then, compress the original compression program.
At the end of lifecycle. After the tar package is generated, you can use other programs to compress it. So let's first talk about the basic usage of the tar command:
There are many options for the tar command (which can be viewed using man TAR), but there are several commonly used options. The following is an example:
# Tar-CF all.tar *. jpg
This command is to pack all. jpg files into a package named all.tar. -C indicates that a new package is generated.-F specifies the package file name.
# Tar-RF all.tar *. gif
This command adds all .gif files to the package of all.tar. -R indicates adding files.
# Tar-UF all.tar logo.gif
This command is used to update the logo.gif file in tarbao all.tar.-u indicates that the file is updated.
# Tar-TF all.tar
This command is used to list all files in the all.tar package.-T is used to list objects.
# Tar-XF all.tar
This command is used to extract all the files in the all.tar package.
The above is the most basic usage of tar. To help you compress or decompress files while packing and unpackage, tar provides a special feature. This means that tar can call other compression programs, such as gzip and Bzip2, while packaging or unpacking.
1) tar calls Gzip
Gzipis a program developed by gnuorganization. The file ending with .gz is the result of gzip compression. The decompress program relative to gzip is gunzip. Use the-Z parameter in tar to call gzip. The following is an example:
# Tar-CZF all.tar.gz *. jpg
Bytes
# Tar-xzf all.tar.gz
This command unlocks the generated package.
2) tar call Bzip2
Bzip2is a more powerful compression program. The file ending with .bz2 is the result of Bzip2 compression. The decompress program relative to Bzip2 is bunzip2. Use the-J parameter in tar to call gzip. The following is an example:
# Tar-CJF all.tar.bz2 *. jpg
Bytes
# Tar-xjf all.tar.bz2
This command unlocks the generated package.
3) tar call Compress
Compress is also a compression program, but it seems that there are not as many people using compress as gzip and Bzip2 .. The file ending with Z is the result of Bzip2 compression. The decompress program relative to compress is uncompress. Use the-Z parameter in tar to call gzip. The following is an example:
# Tar-CZF all.tar. z *. jpg
Forbidden. Z
# Tar-xzf all.tar. Z
This command is used to unbind the generated package.
With the above knowledge, you should be able to uncompress a variety of compressed files. The following is a summary of the compressed files in the TAR series:
1st pair of files ending with .tar
Tar-XF all.tar
2XX for the file ending with .gz
Gzip-D all.gz
Gunzip all.gz
32.16.tgzor .tar.gz
Tar-xzf all.tar.gz
Tar-xzf all. tgz
4)for the file ending with .bz2
Bzip2-D all.bz2
Bunzip2 all.bz2
5 bytes for the file ending with tar.bz2
Tar-xjf all.tar.bz2
6) for files ending with. Z
Uncompress all. Z
72.16.tar. Z
Tar-xzf all.tar. Z
In addition, Linux has corresponding methods to decompress the compressed files .zipand .rar in Windows:
1)for. Zip
Linux provides zip and unzip programs, Zip is a compression program, and unzip is a decompression program. They have many Parameter options. Here we will only give a brief introduction and give examples to illustrate their usage:
# Zip all.zip *. jpg
This command compresses all .jpg files into a zip package.
# Unzip all.zip
This command decompress all files in all.zip.
2XX vs. .rar
To process the. rar file in linux, you need to install RAR for Linux, which can be downloaded from the Internet, but remember, rar for Linux
Not free; download RAR for Linux 3.2.0 from http://www.rarsoft.com/download.htmand install:
# Tar-xzpvf rarlinux-3.2.0.tar.gz
# Cd RAR
# Make
After installation, there will be two programs, RAR and unrar. rar is a compression program, and unrar is a decompression program. They have many Parameter options. Here we will only give a brief introduction and give examples to illustrate their usage:
# Rar a all *. jpg
This command is to compress all. jpg files into a rarpackage named all.rar. the program will automatically append the. rar extension name to the package name.
# Unrar e all.rar
This command is to extract all files from all.rar.
So far, we have already introduced tar, Gzip, gunzip, Bzip2, bunzip2, compress, uncompress, example, in Linux ,. these 10 types of compressed files, zw..tar.zw..zipw.rar, have been decompressed. In the future, you should not have to worry about downloading a software and not knowing how to unbind it in Linux. In addition, the above method is basically effective for Unix.
This article describes the compressed files tar, Gzip, gunzip, Bzip2, bunzip2, compress, uncompress, zip, zip, example,. Z,. tar.z).zip#.rar in Linux.