p7zip - Gentoo wiki (2024)

Not to be confused with 7-Zip.

Warning
As of 2024-08-02, the last update of p7zip was a year ago [1], and it is probably vulnerable [2][3], so it is better to use 7-Zip instead.

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

Important
The 7-zip archive format does not store standard Unix file permissions such as owner/group or extended file attributes. Those who desire to use 7-zip as a long-term backup or archiving solution should wrap files in a tar archive before compressing with 7z. Examples are provided below.

Contents

  • 1 Installation
    • 1.1 USE flags
    • 1.2 Emerge
  • 2 Usage
    • 2.1 Invocation
    • 2.2 Extraction of files to current directory
    • 2.3 Extraction to a new directory
    • 2.4 Preserving file attributes
  • 3 See also
  • 4 References

Installation

USE flags

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

+pch Enable precompiled header support for faster compilation at the expense of disk space and memory
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.
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

Data provided by the Gentoo Package Database · Last update: 2024-04-30 18:21 More information about USE flags

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 via the following invocations:

  • 7zG
  • 7zFM

Also a wrapper included is for 7za:

  • p7zip

Extraction of files 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.

Preserving file attributes

When using 7-zip on Gentoo or any other operating system that should preserve Unix file permissions, tar will need to be used in conjunction with 7z to archive or extract files.

Use the following command to archive directories of files, preserving Unix file permissions:

user $tar cf - <directory> | 7za a -si <directory>.tar.7z

To extract:

user $7za x -so <directory>.tar.7z | tar xf -

See also

  • Tar — an archiver tool that provides the ability to create tar archives, as well as various other kinds of manipulation.
  • Zip — provides classic ZIP compression.

References

p7zip - Gentoo wiki (2024)
Top Articles
Security Freeze Fees - Credit Report Security Freeze | Equifax®
Błędy programu Windows Media Player
Lowe's Garden Fence Roll
The 10 Best Restaurants In Freiburg Germany
How to know if a financial advisor is good?
How Much Is 10000 Nickels
Gameday Red Sox
Mivf Mdcalc
Espn Expert Picks Week 2
Matthew Rotuno Johnson
Pollen Count Los Altos
What Does Dwb Mean In Instagram
Cool Math Games Bucketball
Sport Clip Hours
3472542504
VMware’s Partner Connect Program: an evolution of opportunities
Dr Adj Redist Cadv Prin Amex Charge
Jinx Chapter 24: Release Date, Spoilers & Where To Read - OtakuKart
TBM 910 | Turboprop Aircraft - DAHER TBM 960, TBM 910
Welcome to GradeBook
Reser Funeral Home Obituaries
Best Boston Pizza Places
Hctc Speed Test
Hannaford Weekly Flyer Manchester Nh
Devotion Showtimes Near Regency Buenaventura 6
Workshops - Canadian Dam Association (CDA-ACB)
Acurafinancialservices Com Home Page
Bleacher Report Philadelphia Flyers
Mikayla Campinos: Unveiling The Truth Behind The Leaked Content
Miller Plonka Obituaries
15 Downer Way, Crosswicks, NJ 08515 - MLS NJBL2072416 - Coldwell Banker
Tra.mypatients Folio
Appraisalport Com Dashboard /# Orders
Timothy Kremchek Net Worth
Google Jobs Denver
Go Upstate Mugshots Gaffney Sc
Soulstone Survivors Igg
Rs3 Bis Perks
Final Fantasy 7 Remake Nexus
This 85-year-old mom co-signed her daughter's student loan years ago. Now she fears the lender may take her house
Mauston O'reilly's
Searsport Maine Tide Chart
Air Sculpt Houston
City Of Irving Tx Jail In-Custody List
Noelleleyva Leaks
Ssss Steakhouse Menu
Denys Davydov - Wikitia
Cataz.net Android Movies Apk
Bunbrat
Latest Posts
Article information

Author: Geoffrey Lueilwitz

Last Updated:

Views: 6104

Rating: 5 / 5 (80 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Geoffrey Lueilwitz

Birthday: 1997-03-23

Address: 74183 Thomas Course, Port Micheal, OK 55446-1529

Phone: +13408645881558

Job: Global Representative

Hobby: Sailing, Vehicle restoration, Rowing, Ghost hunting, Scrapbooking, Rugby, Board sports

Introduction: My name is Geoffrey Lueilwitz, I am a zealous, encouraging, sparkling, enchanting, graceful, faithful, nice person who loves writing and wants to share my knowledge and understanding with you.