CentOS7安裝7zip解壓縮軟體
Introduction
You might get stuck in unzipping 7z file which you have downloaded from internet. 7z file is compression ratio is very high so if you download a file from internet it should be lower in size then other formats.
7z is a very not very widely used archiving system found in everyday life. But 7z does have some advantages and some disadvantages. It also does support various different compression methods. It also supports encryption and and pre-processing algorithms.
If you want to know more information about 7z you can check out this
But unfortunately you will not be able to unzip the file in using tar command. You will need a separate program called p7zip. By default this application is not installed on the system. It will be required you to use a separate repo. In the below we will show you how to install it.
How to install
Step 01: Please login using your privileged account using the following command.
su –
Step 02: Download the repo using the command given below.
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
Step 03: Now install the downloaded rpm using
rpm -ivh rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
Step 04: Now you need to install the package
yum install p7zip
Step 05: To unzip the file use the following command
7za x <filename>
Conclusion
To unzip 7z file CentOS 7 is not very difficult you just need to download a tool from web. If you face any more issue with 7z you can leave a comment.
If you want to see the options provided by 7za you can type the following command and press enter.