Questions tagged [7zip]

"7z" or "7-Zip" may refer either to the open-source 7z compression container format or to the file name of the executable program of the same name that is the flagship implementation of the compression format. Both are GPL-licensed and under active development.

"7z" or "7-Zip" may refer either to the open-source 7z compression container format or to the file name of the executable program of the same name that is the flagship implementation of the compression format. Both are GPL-licensed and under active development.

The 7z format is a compressed archive file format that supports several different data compression, encryption and pre-processing algorithms. The LZMA SDK 4.62 was placed in the public domain in December 2008. The latest stable version of 7-Zip and LZMA SDK is version 18.05. The MIME type of 7z is application/x-7z-compressed.

The 7-Zip program is an open source file archiver. 7-Zip operates with the 7z archive format, but can read and write several other archive formats. The program can be used from a command line interface, graphical user interface, or with Microsoft Windows shell integration. 7-Zip's development began in 1999, and it is actively developed by Igor Pavlov. It is related to a cross-platform port, p7zip. 7-Zip is free software distributed under the GNU Lesser General Public License (LGPL). It was the winner of the SourceForge.net 2007 community choice awards for "Technical Design" and for "Best Project".

7z has an open architecture, so it can support any new compression methods. Now the following methods are integrated to 7z:

  1. LZMA: Improved and optimized version of LZ77 algorithm
  2. LZMA2: Improved version of LZMA
  3. PPMD: Dmitry Shkarin's PPMdH with small changes
  4. BCJ: Converter for 32-bit x86 executables
  5. BCJ2: Converter for 32-bit x86 executables
  6. BZip2: Standard BWT algorithm
  7. Deflate: Standard LZ77-based algorithm
1441 questions
12
votes
2 answers

How can I get 7za.exe to run via Powershell Remoting?

I've tried a number of different ways to do this, they all result in the same error. Here is one set of commands: $s = New-PSsession -ComputerName ServerA $job = Invoke-Command -Session $s -Scriptblock { Start-Process -FilePath …
Sean
  • 1,065
  • 2
  • 10
  • 10
12
votes
3 answers

How to read from a text file compressed with 7z?

I would like to read (in Python 2.7), line by line, from a csv (text) file, which is 7z compressed. I don't want to decompress the entire (large) file, but to stream the lines. I tried pylzma.decompressobj() unsuccessfully. I get a data error. Note…
Yariv
  • 12,945
  • 19
  • 54
  • 75
11
votes
0 answers

How does 7-zip use threading?

Is there an explanation on how multithreading in 7zip is implemented? Does it compress several files in parallel, several blocks in parallel, or is the same block compressed by multiple threads? And are there any trade-offs involving multithreading?…
zr.
  • 7,528
  • 11
  • 50
  • 84
11
votes
1 answer

Treating 7z files as .NET streams

I would like to chain multiple stream operations (like downloading a file, uncompressing it on the fly, and processing the data without any temp files). The files are in 7z format. There is a LZMA SDK available, but forces me to create an outside…
Yuri Astrakhan
  • 8,808
  • 6
  • 63
  • 97
11
votes
1 answer

What compression format should we use; should we lay DEFLATE (.zip) to rest?

With most Linux distributions dropping gzip and bzip2 in favor of LZMA2 for compressing their packages, and many open source implementations for many platforms, I wonder: Shouldn't we lay DEFLATE and the .zip format (which unfortunately got…
polemon
  • 4,722
  • 3
  • 37
  • 48
11
votes
3 answers

7-ZIP (LZMA) compression for iPhone (iOS)

Does anybody know if there is an implementation of 7-Zip (LZMA) that would work on iPhone (iOS)?
epoch
  • 1,337
  • 2
  • 15
  • 23
11
votes
4 answers

JPG+Zip File Combination Problem with Zip Format

Hopefully you've heard of the neat hack that lets you combine a JPG and a Zip file into a single file and it's a valid (or at least readable) file for both formats. Well, I realized that since JPG lets arbitrary stuff at the end, and ZIP at the…
Tom Ritter
  • 99,986
  • 30
  • 138
  • 174
11
votes
7 answers

7zip Self Extracting Archive (SFX) without administrator privileges

I use 7zip to create the SFX as follows: 7z.exe a -r archive.7z * Then I do a binary copy with the 7zS.sfx file (used to create a self extracting installer), config file "build.config", and the archive. The contents of config file are as…
Ruslan Gilmutdinov
  • 1,217
  • 2
  • 9
  • 20
11
votes
8 answers

7-zip commandline

I'm creating a backup utility that zips all the files listed in a text file. I am using MS ACCESS as my front-end and 7-Zip for compression. These are the commands I am using: 7zG.exe a c:\Backup\backup.zip @c:\temp\tmpFileList.txt All the files…
Arnold
  • 309
  • 1
  • 2
  • 10
10
votes
3 answers

How to create tar file with 7zip

I'm trying to create a tar file on windows using 7zip. Most of the documents I found said to do something like this: 7z a -ttar -so dwt.tar dwt/ But when I tried to run it I got this error: Command Line Error: I won't write compressed data to a…
radicaled
  • 2,369
  • 5
  • 30
  • 44
10
votes
2 answers

how do I extract 7-zip zip file without directory

I have this command: 7z e -oD:\Data\ODS_Source\* D:\Data\DATA_DROP\Source.zip This results in D:\Data\ODS_Source\Source\. I need D:\Data\ODS_Source\. How do I eliminate the folder creation? Thanks.
arcee123
  • 101
  • 9
  • 41
  • 118
10
votes
2 answers

Command line for 7z to extract specific files from specific folders inside an archive

I'm writing a Python script where I need to call 7z to extract some files kept inside a directory in an archive without extracting the complete archive. The archive contains multiple directories and I need to extract some files from a particular…
Anurag Tiwary
  • 123
  • 1
  • 1
  • 11
10
votes
1 answer

How to rename a file inside a 7zip archive by CLI?

I am looking for soulution how to rename files inside a 7zip archive by command line (unix).
Maciej Płocki
  • 362
  • 2
  • 7
  • 18
10
votes
1 answer

How to show extraction progress of 7zip inside cmd?

7z.exe do not show any extraction progress in cmd."C:\Program Files\7-Zip\7zG.exe" -y x -pPASSWORD "D:\Myfile.rar" Extracts the file with a GUI progress-bar. But I don't want a GUI progress bar. I want to show the progress in terms of percentage…
Deb
  • 5,163
  • 7
  • 30
  • 45
10
votes
1 answer

Error unzipping a file in cmd (using 7z in Windows)

I am attempting to use 7 Zip through the command line. As you can see below, using the command 7z l lists the 3 files in the target zip file. C:\Users\User1\Downloads>7z l recording_20130731180507.zip -- Path = recording_20130731180507.zip Type =…
austinthemassive
  • 5,907
  • 6
  • 21
  • 25