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
117
votes
12 answers

How do I create 7-Zip archives with .NET?

How can I create 7-Zip archives from my C# console application? I need to be able to extract the archives using the regular, widely available 7-Zip program. Here are my results with the examples provided as answers to this question "Shelling out"…
Seibar
  • 68,705
  • 38
  • 88
  • 99
96
votes
4 answers

7-Zip command to create and extract a password-protected ZIP file on Windows?

On Mac/Linux to zip/unzip password protected zip files, I use: Zip: zip -P password -r encrypted.zip folderIWantToZip Unzip: unzip -P password encrypted.zip What are the equivalent command on Windows on the command line (assuming that 7zip has…
user3254893
  • 1,071
  • 2
  • 13
  • 14
87
votes
4 answers

Unzip files (7-zip) via cmd command

I try to unzip a file via CMD. So I install winzip (and its plugin to cmd), winrar and 7-zip. But when I try to execute a command via the CMD: 7z e myzip.zip It gives the next error: 7z is not recognized as an internal or external command In…
Adam Sh
  • 8,137
  • 22
  • 60
  • 75
71
votes
1 answer

How to create tar.gz archive file in Windows?

How to create tar.gz archive of my files in Windows to upload and extract in cPanel?
Shamas
  • 1,027
  • 2
  • 10
  • 10
62
votes
3 answers

How do I make a self extract and running installer

So currently my users download a zipfile, unzip it and then run setup.exe - I would like them to do this with one click. Using http://www.wikihow.com/Use-7Zip-to-Create-Self-Extracting-excutables i can make a self-extracting exe, but it doesn't…
Paul Taylor
  • 13,411
  • 42
  • 184
  • 351
50
votes
7 answers

Running 7-Zip from within a Powershell script

I'm trying to use 7-Zip to backup some files inside a Powershell (v2) script. I have: $zipPath = "C:\Program Files\7-Zip\7z.exe" [Array]$zipArgs = "-mx=9 a", "`"c:\BackupFolder\backup.zip`"", "`"c:\BackupFrom\backMeUp.txt`"" &$zipPath…
IGGt
  • 2,627
  • 10
  • 42
  • 63
47
votes
5 answers

Compressing only files using 7z without preserving the path

I am using 7z command line executable to zip files, but I see that while adding to an archive the path of the files is preserved in the archive. So if I do 7z a -tzip myzip.zip dir1\dir2\* the archive myzip.zip will contain the path dir1\dir2. I…
Raam
  • 10,296
  • 3
  • 26
  • 27
45
votes
5 answers

7zip Ultra LZMA2 compression

How can I convert this settings into command? Here are the results: // Manual Compression (see the image above) Compressed Size: 12,647,451 bytes // Ultra 7z a -t7z Files.7z -mx9 -aoa Compressed Size: 12,676,886 bytes // LZMA2 7z a -t7z…
fiberOptics
  • 6,955
  • 25
  • 70
  • 105
40
votes
5 answers

Programmatically extract tar.gz in a single step (on Windows with 7-Zip)

Problem: I would like to be able to extract tar.gz files in a single step. This makes my question almost identical to this one: Stack Overflow question for tar-gz. My question is almost the same, but not the same, because I would like to do this on…
dreftymac
  • 31,404
  • 26
  • 119
  • 182
39
votes
4 answers

Any good tool for browsing archives(Ear,War, Jar) on OSX

On Linux i can use file-roller and open an browse the content of an EAR file without manually open it, can even dig into contained WAR file and within that JAR files quickly. This is another of those must have tools I'm missing on OSX (along with…
Thibaut Colar
  • 919
  • 2
  • 9
  • 19
38
votes
7 answers

How to read contents of 7z file using python

How can I read and save the contents of 7z. I use Python 2.7.9, I can extract or Archive like this, but I can't read contents in python, I only listing the file's contents in CMD import subprocess import os source = 'filename.7z' directory =…
Ken Kem
  • 635
  • 1
  • 6
  • 13
38
votes
2 answers

How to programmatically extract / unzip a .7z (7-zip) file with R

I'm trying to automate the extraction of a number of files compressed with 7-zip. I need to automate this process, because a) there are many years of data I'd like to unlock and b) I'd like to share my code with others and prevent them from…
Anthony Damico
  • 5,779
  • 7
  • 46
  • 77
36
votes
13 answers

Extracting a 7-Zip file "silently" - command line option

I want to extract a 7-Zip archive in a Python script. It works fine except that it spits out the extraction details (which is huge in my case). Is there a way to avoid this verbose information while extracting? I did not find any "silent" command…
sambha
  • 1,333
  • 3
  • 17
  • 30
34
votes
4 answers

How do I silently install a 7-zip self-extracting archive to a specific directory?

The Ruby Devkit is a 7-zip based self-extracting archive. I would like to invoke it silently without having to install 7-Zip to extract the files to a folder of my choosing, so that I can script the installation. I imagine it to be something…
Jay Godse
  • 15,163
  • 16
  • 84
  • 131
32
votes
3 answers

How to use the 7z SDK to compress and decompress a file

According to this link How do I create 7-Zip archives with .NET? , WOPR tell us how to compress a file with LMZA (7z compression algorithm) using 7z SDK ( http://www.7-zip.org/sdk.html ) using SevenZip.Compression.LZMA; private static void…
Djax
  • 421
  • 1
  • 4
  • 5
1
2 3
95 96