Page 1 of 1

How to extract .7z files on Linux

New postPosted: Tue Jun 17, 2014 11:46 am
by lucy
How do I extract a .7z file on Linux?

Thanks!

Re: How to extract .7z files on Linux

New postPosted: Tue Jun 17, 2014 12:18 pm
by Patton
lucy wrote:How do I extract a .7z file on Linux?

Thanks!



Use 7za to unzip a 7z file (7zip) in Linux.
To see if you have you have 7za installed.

Code: [Select all] [Expand/Collapse] [Download] (Untitled.bsh)
  1. whereis 7za

7za: /usr/bin/7za /usr/bin/X11/7za /usr/share/man/man1/7za.1.gz

install the p7zip package if you don't have the command.

For Fedora and CentOS:
Code: [Select all] [Expand/Collapse] [Download] (Untitled.bsh)
  1. yum install p7zip


For Debian and Ubuntu:
Code: [Select all] [Expand/Collapse] [Download] (Untitled.bsh)
  1. sudo apt-get install p7zip


Uncompress the *.7z 7zip files in Linux using 7za.
Code: [Select all] [Expand/Collapse] [Download] (Untitled.bsh)
  1. 7za e yourfile.7z


e: Extract files from archive (without using directory names)