How to Extract 7zip files on CentOS 7

How to Extract 7zip files on CentOS 7

In this tutorial I will show you, how to extract 7zip files on CentOS 7 server and  GUI.

7zip is award winning open source file archiver. Besides operating on the 7z format, it supports many other popular archive formats and can seamlessly work on them. The 7zip project was started in 1999 by a Russian freelance programmer who is the developer and maintainer of this project.

In Order to extract 7zip files, we need to install p7zip package on CentOS 7. The p7zip package provides the 7za command which we are going to use to unzip 7zip files.

Install p7zip on CentOS 7

First install the epel repository with yum command.

sudo yum install epel-release

Then install the p7zip package with yum command.

sudo yum install p7zip

With p7zip package, now we can extract 7z files on CentOS 7.

Extract 7z files using 7za Command

Now we can Use 7za command to extract .7z files on the command line. To extract files we use the “x” argument.

7za x file.7z

  • By default the .7z file will be extracted to the current working directory.
  • You will prompt to the Password, if the 7zip file is password protected.

Extract to a Different Folder

Use -o option of the 7za command To extract 7zip file to a different directory.

7za x -o/tmp file.7z

As per the above example, file.7z archive will extract to the /tmp directory.

Extract 7zip files in CentOS Desktop

With p7zip package installed, it is also possible to unzip .7z files in the CentOS Desktop using the GUI.

Right click on the .7z archive and click “Extract Here” to unzip the archive file.

So that is how we can 7zip file in CentOS 7 using p7zip package.

Was this Tutorial helpful? Help others share on Facebook, Twitter, and Google Plus!

 
Enjoyed this video?
How to Extract 7zip files on CentOS 7
"No Thanks. Please Close This Box!"