This is Gentoo's testing wiki. It is a non-operational environment and its textual content is outdated.

Please visit our production wiki at https://wiki.gentoo.org

p7zip

From Gentoo Wiki (test)
Jump to:navigation Jump to:search

Resources

p7zip is a command-line port of 7-Zip for POSIX compliant systems such as Unix, OS X, BeOS and Amiga. Created by Igor Pavlov, the 7-Zip compression type uses one of the highest compression ratios currently available. Since version 4.10 it supports little and big endian machines.[1]

Installation

USE flags

USE flags for app-arch/p7zip Port of 7-Zip archiver for Unix

kde Add support for software made by KDE, a free software community
natspec Use dev-libs/libnatspec to correctly decode non-ascii file names archived in Windows.
pch Enable precompiled header support for faster compilation at the expense of disk space and memory
rar Enable support for non-free rar decoder
static  !!do not set this during bootstrap!! Causes binaries to be statically linked instead of dynamically
wxwidgets Add support for wxWidgets/wxGTK GUI toolkit

Emerge

p7zip can be installed by running:

root #emerge --ask app-arch/p7zip

Usage

Invocation

There are three different ways to invoke the compression utility:

  • 7z
  • 7za
  • 7zr

If compiled with the wxwidgets USE flag it also provides a graphical interface.

  • 7zG
  • 7zFM

Also a wrapper included is for 7za:

  • p7zip

Extraction to current directory

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

user $7za e <archive name>

Where <archive name> is to be replaced with the archive's name.

To extract with full paths, use the following command:

user $7za x <archive name>

Extraction to a new directory

To extract into a new directory, use the following command:

user $7za x -o<folder name> <archive name>

Where <folder name> is the name of the new folder.

See also

  • tar - GNU's tarball generator software (used extensively by Gentoo Linux).
  • zip - Provides classic zip compression.

References