Difference between revisions of "P7zip"

From ArchWiki
Jump to: navigation, search
m
(Differences between 7z, 7za and 7zr binaries: link man pages)
 
(19 intermediate revisions by 10 users not shown)
Line 1: Line 1:
 +
{{Lowercase title}}
 
[[Category:Data compression and archiving]]
 
[[Category:Data compression and archiving]]
[[fr:P7zip]]
+
[[cs:P7zip]]
[[ja:P7zip]]
+
[[fr:p7zip]]
{{Lowercase title}}
+
[[ja:p7zip]]
p7zip is command line port of [[Wikipedia:7zip|7-Zip]] for [[Wikipedia:POSIX|POSIX]] systems, including Linux.
+
[[ru:P7zip]]
 +
[[zh-hans:P7zip]]
 +
[[zh-hant:P7zip]]
 +
[http://p7zip.sourceforge.net/ p7zip] is command line port of [[Wikipedia:7zip|7-Zip]] for [[Wikipedia:POSIX|POSIX]] systems, including Linux.
 +
 
 +
== Installation ==
 +
 
 +
[[Install]] the {{Pkg|p7zip}} package.
 +
 
 +
The command to run the program is the following:
 +
 
 +
$ 7z
 +
 
 +
== Examples ==
 +
 
 +
To extract all files from an archive to the current directory without using directory names, run:
 +
 
 +
$ 7z e <archive name>
 +
 
 +
To extract with full paths, run:
 +
 
 +
$ 7z x <archive name>
  
==Installation & Use==
+
To extract into a new directory, run:
[[pacman|Install]] the {{Pkg|p7zip}} package which is available in the [[Official Repositories|official repositories]].
 
  
The command to run the program is simply the following:
+
  $ 7z x -o<folder name> <archive name>
  # 7z
 
  
==Examples==
+
== Differences between 7z, 7za and 7zr binaries ==
To simply extract all files from an archive to the current directory without using directory names, use the following command:
 
# 7za e <archive name>
 
  
To extract with full paths, use the following command:
+
The package includes three binaries, {{ic|/usr/bin/7z}}, {{ic|/usr/bin/7za}}, and {{ic|/usr/bin/7zr}}. Their manual pages explain the differences:
# 7za x <archive name>
 
  
==Differences between 7z, 7za and 7zr binaries==
+
* {{man|1|7z}} uses plugins to handle archives.
The package includes three binaries, {{ic|/usr/bin/7z}}, {{ic|/usr/bin/7za}}, and {{ic|/usr/bin/7zr}}. Their manpages explain the differences:
+
* {{man|1|7za}} is a stand-alone executable. 7za handles fewer archive formats than 7z, but does not need any others.
* 7z uses plugins to handle archives.
+
* {{man|1|7zr}} is a stand-alone executable. 7zr handles fewer archive formats than 7z, but does not need any others. 7zr is a "light-version" of 7za that only handles 7z archives.
* 7za is a stand-alone executable. 7za handles fewer archive formats than 7z, but does not need any others.
 
* 7zr is a stand-alone executable. 7zr handles fewer archive formats than 7z, but does not need any others. 7zr is a "light-version" of 7za that only handles 7z archives.
 
  
==External Links==
+
== See also ==
[http://p7zip.sourceforge.net/ Homepage.]
 
  
[http://www.7-zip.org/download.html 7zip homepage.]
+
* [http://www.7-zip.org/download.html 7zip homepage.]
 +
* [https://www.ibm.com/developerworks/community/blogs/6e6f6d1b-95c3-46df-8a26-b7efd8ee4b57/entry/how_to_use_7zip_on_linux_command_line144?lang=en How to use 7zip on Linux command Line.]

Latest revision as of 10:59, 5 December 2017

p7zip is command line port of 7-Zip for POSIX systems, including Linux.

Installation

Install the p7zip package.

The command to run the program is the following:

$ 7z

Examples

To extract all files from an archive to the current directory without using directory names, run:

$ 7z e <archive name>

To extract with full paths, run:

$ 7z x <archive name>

To extract into a new directory, run:

$ 7z x -o<folder name> <archive name>

Differences between 7z, 7za and 7zr binaries

The package includes three binaries, /usr/bin/7z, /usr/bin/7za, and /usr/bin/7zr. Their manual pages explain the differences:

  • 7z(1) uses plugins to handle archives.
  • 7za(1) is a stand-alone executable. 7za handles fewer archive formats than 7z, but does not need any others.
  • 7zr(1) is a stand-alone executable. 7zr handles fewer archive formats than 7z, but does not need any others. 7zr is a "light-version" of 7za that only handles 7z archives.

See also