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
29
votes
11 answers

How can I extract multiple 7z files in folder at once in Ubuntu?

How can I extract about 900 7z files which are all located in the same folder (all have only one file inside) without doing it one by one? I am using Ubuntu 10.10. All files are located in /home/username/folder1/folder2.
Robert Cardona
  • 1,068
  • 5
  • 18
  • 31
29
votes
3 answers

Python3: lzma unpack .7z file

I would like to unpack a .7z file. According to this question I can use the lzma package to do this. I was expecting something like import lzma #... with lzma.open('myFile.7z') as f: f.extractall('.') To extract the file into the current…
Sjoerd222888
  • 3,228
  • 3
  • 31
  • 64
27
votes
7 answers

Using 7-Zip from Delphi?

I would like to use the 7-Zip DLLs from Delphi but have not been able to find decent documentation or examples. Does anyone know how to use the 7-Zip DLLs from Delphi?
Lawrence Barsanti
  • 31,929
  • 10
  • 46
  • 68
24
votes
6 answers

why is LZMA SDK (7-zip) so slow

I found 7-zip great and I will like to use it on .net applications. I have a 10MB file (a.001) and it takes: 2 seconds to encode. Now it will be nice if I could do the same thing on c#. I have downloaded http://www.7-zip.org/sdk.html LZMA SDK c#…
Tono Nam
  • 34,064
  • 78
  • 298
  • 470
21
votes
2 answers

Converting .bat to .exe with no additional external software (Create SFX)

Following the same steps as this guide. I am trying to convert from bat to exe without installing any new software such as Bat to Exe Converter. The reason I am using this method is because all machines in my workplace already have 7zip installed…
Hadi Farah
  • 1,091
  • 2
  • 9
  • 27
21
votes
1 answer

How to exclude files when compressing using 7zip GUI parameters

I am trying to compress a folder with 7zip and I am using the 7zip GUI, but I want to exclude some files that I have already defined in an excludelist.txt file. I am trying to put this in the Parameters option of the GUI: -x@"D:\Projects…
ddieppa
  • 5,866
  • 7
  • 30
  • 40
19
votes
1 answer

7-Zip: Any good tutorials?

I'm thinking about using the 7-Zip format to pack my application files since it's a very compact and popular format. I can't find some tutorials on how to use the C++ SDK, though. I'd like some tutorials that teach me how to: Open an archive from…
Paul Manta
  • 30,618
  • 31
  • 128
  • 208
19
votes
5 answers

Free compression library for C# which supports 7zip (LZMA)

I have a program (written in C#) that reads/writes its data directly (direct file access without server) to firebird database files. For a better exchange I want to (un)compress them on import/export for a better exchange over the internet without…
Xn0vv3r
  • 17,766
  • 13
  • 58
  • 65
18
votes
1 answer

7zip Fastest LZMA2 compression

How can I convert these settings into a command? Archiv format:7z compression level: Fastest Compression method: LZMA2 Dictionary size: 64kb Word size: 32 Solid Block size: 8MB Number of CPU threads: 30 I tried this: "7z.exe" a -t7z "F:\BACKUP"…
Paul Smith
  • 499
  • 2
  • 6
  • 17
18
votes
3 answers

how to extract files from a 7-zip stream in Java without store it on hard disk?

I want to extract some files from a 7-zip byte stream,it can't be stored on hard disk,so I can't use RandomAccessFile class,I have read sevenzipjbinding source code,it also uncompresses the file with some closed source things like…
user3330817
  • 181
  • 1
  • 1
  • 3
18
votes
3 answers

Compressing & Decompressing 7z file in java

I want to compress a file into zip, rar and 7z format using java code. Also I want to decompress these files at a specified location. Can anyone please tell me how to compress and decompress files using 7-zip in java?
user1728310
  • 687
  • 2
  • 5
  • 14
17
votes
6 answers

How to use LZMA SDK to compress/decompress in Java

http://www.7-zip.org/sdk.html This site provide a LZMA SDK for compress/decompress files, I would like to give it a shot but I am lost. Anyone got experience on this? Or a tutorial? Thanks.
lamwaiman1988
  • 3,729
  • 15
  • 55
  • 87
17
votes
2 answers

Zipping everything in directory with 7z except one file or one file type

i'd like to zip everything except one file 7z a -tzip files.zip * this will zip all the files in my current directory.. is there a way I can tell it to not zip one file or one file type ?
penguinsource
  • 1,120
  • 3
  • 16
  • 40
17
votes
2 answers

Correctly decoding zip entry file names -- CP437, UTF-8 or?

I recently wrote a zip file I/O library called zipzap, but I'm struggling with correctly decoding zip entry file names from arbitrary zip files. Now, the PKWARE spec states: D.1 The ZIP format has historically supported only the original IBM PC…
Glen Low
  • 4,379
  • 1
  • 30
  • 36
17
votes
3 answers

7zip Commands from Python

There is a post on this topic already, but it does not have an explicit answer to the fundamental question which I am re-asking here: How do you make 7zip commands from Python? Attempting to use the subprocess module, I implemented the following…
nairware
  • 3,090
  • 9
  • 37
  • 58
1
2
3
95 96