Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

7-Zip

From Wikipedia, the free encyclopedia
Open-source file archiver

7-Zip
7-Zip File Manager onWindows 11
DeveloperIgor Pavlov[1]
Initial release2 January 1999; 26 years ago (1999-01-02)[2]
Stable release25.01[3] Edit this on Wikidata (3 August 2025; 3 months ago (3 August 2025))
Preview release24.09 (29 November 2024; 11 months ago (2024-11-29)) [±][4]
Repository
Written inAssembly,C andC++[5]
Operating systemWindows/ReactOS,[6]BSD,macOS,Linux,[7]
Size1.1–1.7MB[8]
Available in89 languages[9]
List of languages

Afrikaans, Albanian, Arabic, Aragonese, Armenian, Asturian, Azerbaijani, Bangla, Bashkir, Basque, Belarusian, Breton, Bulgarian, Catalan, Chinese Simplified, Chinese Traditional, Corsican, Croatian, Czech, Danish, Dutch, English, Esperanto, Estonian, Extremaduran, Farsi, Finnish, French, Frisian, Friulian, Galician, Georgian, German, Greek, Gujarati, Indian, Hebrew, Hindi, Indian, Hungarian, Icelandic, Ido, Indonesian, Irish, Italian, Japanese, Kabyle, Karakalpak - Latin, Kazakh, Korean, Kurdish - Sorani, Kurdish, Kyrgyz, Latvian, Ligurian, Lithuanian, Macedonian, Malay, Marathi, Mongolian (MenkCode), Mongolian (Unicode), Mongolian, Nepali, Norwegian Bokmal, Norwegian Nynorsk, Pashto, Polish, Portuguese Brazilian, Portuguese Portugal, Punjabi, Indian, Romanian, Russian, Sanskrit, Indian, Serbian - Cyrillic, Serbian - Latin, Sinhala, Vietnam, Slovak, Slovenian, Spanish, Swedish, Tamil, Tatar, Thai, Turkish, Ukrainian, Uyghur, Uzbek, Valencian, Vietnamese, Welsh, Yoruba

These translations are partial and for the user interface only. Help and documentations are in English.

TypeFile archiver
LicenseLGPL-2.1-or-later with unRAR restriction[10] / LZMA SDK in thepublic domain[11]
Website7-zip.org Edit this on Wikidata

7-Zip is afree and open-sourcefile archiver, a utility used to place groups of files within compressed containers known as "archives". It is developed by Igor Pavlov and was first released in 1999.[2] 7-Zip has its ownarchive format called7z introduced in 2001,[12] but can read and write several others.

The program can be used from a Windowsgraphical user interface that also features shell integration, or from acommand-line interface as the command7z that offerscross-platform support (seeversions for details). An obsolete port of 7-Zip toPOSIX systems was calledp7zip.[13] Most of the 7-Zipsource code is under theLGPL-2.1-or-later license; theunRAR code, however, is under theLGPL-2.1-or-later license with an "unRAR restriction", which states that developers are not permitted to use the code toreverse-engineer theRAR compression algorithm.[14][15]

Since version 21.01 alpha, Linux support has been added to the 7zip project.[7]

Archive formats

[edit]

7z

[edit]
Main article:7z

By default, 7-Zip creates 7z-format archives with a.7zfile extension. Each archive can contain multiple directories and files. As acontainer format, security or size reduction are achieved by looking for similarities throughout the data using a stacked combination of filters. These can consist of pre-processors,compression algorithms, andencryption filters.

The core 7z compression uses a variety ofalgorithms, the most common of which arebzip2,PPMd,LZMA2, andLZMA. Developed by Pavlov, LZMA is a relatively new system, making its debut as part of the 7z format. LZMA uses an LZ-based sliding dictionary of up to 3840 MB in size, backed by arange coder.[16]

The native 7zfile format is open andmodular.File names are stored asUnicode.[17]

In 2011,TopTenReviews found that the 7z compression was at least 17% better thanZIP,[18] and 7-Zip's own site has since 2002 reported that while compression ratio results are very dependent upon the data used for the tests, "Usually, 7-Zip compresses to 7z format 30–70% better than to zip format, and 7-Zip compresses to zip format 2–10% better than most other zip-compatible programs."[19]

The 7z file format specification is distributed with the program's source code, in the "doc" sub-directory.

Others

[edit]

7-Zip supports a number of other compression and non-compression archive formats (both for packing and unpacking), includingZIP,gzip,bzip2,xz,tar, andWIM. The utility also supports unpackingAPM,ar,ARJ,chm,cpio,deb,FLV,JAR,LHA/LZH,LZMA, MSLZ,Office Open XML,onepkg,RAR,RPM,smzip,SWF,XAR, andZ archives andcramfs,DMG,FAT,HFS,ISO,MBR,NTFS,SquashFS,UDF, andVHDdisk images. 7-Zip supports the ZIPX format for unpacking only. It has had this support since at least version 9.20, which was released in late 2010. 7-Zip added support for RAR5 in 2015.[20]

7-Zip can open someMSI files, allowing access to the meta-files within along with the main contents. Some Microsoft CAB (LZX compression) andNSIS (LZMA) installer formats can be opened. Similarly, some Microsoft executable programs (.EXEs) that are self-extracting archives or otherwise contain archived content (e.g., some setup files) may be opened as archives.

When compressing ZIP or gzip files, 7-Zip uses its ownDEFLATE encoder, which may achieve higher compression, but at lower speed, than the more commonzlib DEFLATE implementation. The 7-Zip deflate encoder implementation is available separately as part of the AdvanceCOMP suite of tools.

The decompression engine forRAR archives was developed using freely available source code of the unRAR program, which has a licensing restriction against creation of a RAR compressor. 7-Zip v15.06 and later support extraction of files in the RAR5 format.[21] Somebackup systems use formats supported by archiving programs such as 7-Zip; e.g., someAndroid backups are intar format, and can be extracted by archivers such as 7-Zip.[22]

Some forks add more formats.

File manager

[edit]

7-Zip comes with a file manager along with the standard archiver tools. The file manager has a toolbar with options to create an archive, extract an archive, test an archive to detect errors, copy, move, and delete files, and open a file properties menu exclusive to 7-Zip. The file manager, by default, displays hidden files because it does not followWindows Explorer's policies. The tabs show name, modification time, original and compressed sizes, attributes, and comments (4DOSdescript.ion format).

When going up one directory on the root, all drives, removable or internal appear. Going up again shows a list with four options:

  • Computer: loads the drives list
  • Documents: loads user's documents, usually at%UserProfile%\My Documents
  • Network: loads a list of all network clients connected
  • \\.: Same as "Computer" except loads the drives in low-levelfilesystem access. This results in critical drive files and deleted files still existing on the drive to appear. (NOTE: As of November 2020, access to the active partition in low-level mode is not allowed for currently unknown reasons.)

Features

[edit]

7-Zip supports:

  • 32- and 64-bit x86, ARM64 architecture
  • File Manager
  • Encryption via the 256-bitAES cipher, which can be enabled for both files and the 7z hierarchy. When the hierarchy is encrypted, users are required to supply apassword to see the filenames contained within the archive. WinZip-developed Zip file AES encryption standard is also available in 7-Zip to encrypt ZIP archives with AES 256-bit, but it does not offer filename encryption as in 7z archives.[23]
  • Volumes of dynamically variable sizes, allowing use for backups on removable media such as writable CDs and DVDs
  • Usability as a basicorthodox file manager when used in dual panel mode
  • Multiple-core CPU threading[24]
  • Opening EXE files as archives, allowing the decompression of data from inside many "Setup" or "Installer" or "Extract" type programs without having to launch them
  • Unpacking archives with corrupted filenames, renaming the files as required
  • Createself-extracting single-volume archives
  • Command-line interface[25]
  • Graphical user interface. The Windows version comes with its own GUI. For variousUnix-like systems, several GUIs, e.g.PeaZip, can handle the 7z file format based on the Unix binaries.[26]
  • Calculatingchecksums in the formats CRC-32, CRC-64, SHA-1, or SHA-256 for files on disk, available either via command line or Explorer's context menu[2]
  • Available in 89 languages
  • Ability to optionally record creation dates (tc) and last access dates (ta) in archives (in addition to modification dates).[27]

Versions

[edit]

Threecommand-line versions are provided: 7z (7z.exe), using external libraries to support a large number of different formats and the ability to support even more formats viaplug-ins; 7za (7za.exe), which is a standalone executable containing built-in modules, but with compression/decompression support limited to7z,ZIP,gzip,bzip2,Z andtar formats; and 7zr (7zr.exe), which is aminimized standalone executable with compression/decompression support limited to just the7z format. A 64-bit version is available, with support for large memory maps, leading to faster compression. All versions support multi-threading.

Forks

[edit]
  • p7zip is a deprecated port of 7-Zip toUnix-like operating systems (includingLinux,FreeBSD, andmacOS),FreeDOS,OpenVMS,AmigaOS 4, andMorphOS. Since support forUnix-like operating systems has officially been added to upstream 7-Zip in version 21.01, thep7zip fork has become obsolete and is no longer updated; the last available version ofp7zip is 16.02.[13]
    • In most Linux distributions, the commandp7zip is now merely a wrapper that calls the standard7za or7zr program.[28]
  • 7-zip ZS is a fork withZstandard and various other compression algorithms added to the file format.[29]
    • p7zip-zstd (p7zip with zstd) is p7zip with ZS additions.[30]
  • NanaZip is a fork integrating changes from many sources, modernized for theMicrosoft Store.[31]

Plugins

[edit]

7-zip comes with a plug-in system for expansion. The official "Links" page points to many plugins written by TC4Shell, providing extra file support.[32]

Software development kit

[edit]

7-Zip has aLZMASDK which was originallydual-licensed under both theGNU LGPL andCommon Public License,[33] with an additional special exception for linked binaries. On 2 December 2008, the SDK wasplaced by Igor Pavlov in thepublic domain.[11]

Security

[edit]

On older versions, self-extracting archives were vulnerable toarbitrary code execution throughDLL hijacking: they load and run a DLL named UXTheme.dll, if it is in the same folder as the executable file.[34][35][36] 7-Zip 16.03 Release notes say that the installer and SFX modules have added protection against DLL preloading attack.[2]

Versions of 7-Zip prior to 18.05 contain anarbitrary code execution vulnerability in the module for extracting files fromRAR archives (CVE-2018-10115), a vulnerability that was fixed on 30 April 2018.[37]

Versions prior to 23.0 also contained anarbitrary code execution vulnerability, fixed on 7 May 2023.[38] A year later, a severeremote code execution vulnerability was found on versions prior to 24.07 (CVE-2024-11477), it was fixed on 20 November 2024.[39]

Reception and usage

[edit]

Snapfiles.com in 2012 rated 7-Zip 4.5 stars out of 5, noting, "[its] interface and additional features are fairly basic, but the compression ratio is outstanding".[40]

OnTechRepublic in 2009, Justin James found the detailed settings forWindows File Manager integration were "appreciated" and called the compression-decompression benchmark utility "neat". And though the archive dialog has settings that "will confound most users", he concluded: "7-Zip fits a nice niche in between the built-in Windows capabilities and the features of the paid products, and it is able to handle a large variety of file formats in the process."[41]

Between 2002 and 2024, 7-Zip was downloaded 428 million times fromSourceForge alone.[42]

The software has received awards, In 2007, SourceForge granted it community choice awards for "Technical Design" and for "Best Project".[43] In 2013,Tom's Hardware conducted a compression speed test comparing 7-ZIP, MagicRAR,WinRAR, WinZip; they concluded that 7-ZIP beat out all the others with regards to compression speed, ratio, and size and awarded the software the 2013 Tom's Hardware Elite award.[44]

See also

[edit]

References

[edit]
  1. ^Nelson, Mark (30 April 2003)."A Few Questions for Igor Pavlov".Dr. Dobb's Data Compression Newsletter. Archived fromthe original on 4 July 2012. Retrieved28 March 2023.
  2. ^abcd"History of 7-zip changes > 2.00 Beta 1 1999-01-02". 7-Zip 20.02 alpha. 2 January 1999. Retrieved6 April 2025.
  3. ^"HISTORY of the 7-Zip". 3 August 2025. Retrieved3 August 2025.
  4. ^"History of 7-zip changes". 7-Zip. 5 April 2024.Archived from the original on 1 April 2025. Retrieved5 April 2024.
  5. ^"7-Zip".SourceForge.net. January 2016. Retrieved6 April 2025.
  6. ^"Tests for ReactOS 0.4.14".
  7. ^abLarabel, Michael (12 March 2021)."Upstream 7-Zip Adds Preliminary Linux Support". Phoronix. Retrieved17 March 2021.
  8. ^"7-Zip - Browse /7-Zip/16.00".SourceForge.net. Slashdot Media. 10 April 2016. Retrieved12 May 2016.
  9. ^Options... dialog box of 7-Zip for Windows 21.00 alpha
  10. ^Pavlov, Igor (2023)."7-Zip License for use and distribution".7-zip.org.Archived from the original on 1 April 2025. Retrieved6 April 2025.
  11. ^abPavlov, Igor (2013)."LZMA SDK (Software Development Kit)". Retrieved16 June 2013.
  12. ^Igor Pavlov (5 December 2001)."7z Format". Archived fromthe original on 5 December 2001.
  13. ^ab"p7zip Download".SourceForge. July 2016. Retrieved6 January 2024.
  14. ^Pavlov, Igor."7-Zip".7-zip.org. Retrieved31 October 2012.
  15. ^Pavlov, Igor."7-Zip – License for use and distribution".7-zip.org. Retrieved31 October 2012.
  16. ^Diaz, Antonio Diaz."Lzip".LZip.NonGNU.org.Archived from the original on 29 July 2010. Retrieved29 July 2010.
  17. ^Pavlov, Igor."7z Format".7-zip.org. Retrieved16 April 2017.
  18. ^"7-Zip 2011 – TopTenREVIEWS". Archived fromthe original on 25 October 2012.
  19. ^Igor Pavlov."7-Zip (home page)".7-zip.org.Archived from the original on 21 January 2002. Statement on compression performance very similar in January 2002 and April 2017.
  20. ^7-zip.org/history.txt
  21. ^Pavlov, Igor."7-Zip 15.06 beta release notes".
  22. ^Vijay (11 May 2013)."How to extract files from a Nandroid Backup".AJQI. Archived fromthe original on 31 March 2017. Retrieved16 April 2017.
  23. ^"AES Encryption Information: Encryption Specification AE-1 and AE-2".WinZip. 30 January 2009.
  24. ^Atwood, Jeff (28 February 2009)."File Compression in the Multi-Core Era".Coding Horror. Retrieved4 August 2017.
  25. ^"Command Line Syntax". sevenzip.osdn.jp.
  26. ^"Ubuntuusers entry for 7z".Ubuntuusers (in German). Retrieved6 January 2025.
  27. ^-m (Set compression Method) switch
  28. ^"p7zip transitional package on Debian Linux".packages.debian.org.
  29. ^"Milkys Homepage - 7-Zip with support for Zstandard, Brotli, Lz4, Lz5 and Lizard Compression".mcmilk.de.
  30. ^"p7zip-zstd". p7zip-project. 4 May 2023.
  31. ^"NanaZip: The 7-Zip derivative intended for the modern Windows experience". M2-Team. 6 May 2023.
  32. ^"Links".7-zip.org.
  33. ^"Browse /LZMA SDK/4.23".SourceForge. Retrieved12 February 2014.
  34. ^Kanthak, Stefan (8 December 2015)."Executable installers are vulnerable^WEVIL (case 7): 7z*.exe allows remote code execution with escalation of privilege".SecLists.org.
  35. ^Kanthak, Stefan (22 December 2015)."Executable installers are vulnerable^WEVIL (case 14): Rapid7's ScanNowUPnP.exe allows arbitrary (remote) code execution".SecLists.org.
  36. ^Hart, Jon (21 December 2015)."ScanNow DLL Search Order Hijacking Vulnerability and Deprecation".Rapid7.com.
  37. ^"A Vulnerability in 7-Zip Could Allow for Arbitrary Code Execution".cisecurity.org. 1 May 2018. Archived fromthe original on 1 August 2021. Retrieved6 May 2018.
  38. ^"7-Zip 7Z File Parsing Integer Underflow Remote Code Execution Vulnerability".zerodayinitiative.com. 23 August 2022.
  39. ^"7-Zip RCE Vulnerability Let Attackers Execute Remote Code".GBHackers Security | #1 Globally Trusted Cyber Security News Platform. 25 November 2024. Retrieved26 November 2024.
  40. ^"7-Zip file compression tool".Snapfiles.com. WebAttack. Retrieved12 October 2012.
  41. ^James, Justin (10 November 2009)."Review: 7-Zip file compression application".TechRepublic. pp. 1–2.
  42. ^7-zip file download stats onSourceForge.net (February 2024)
  43. ^"SourceForge.net: 2007 Community Choice Awards".SourceForge. 15 June 2007.Archived from the original on 26 March 2010. Retrieved16 April 2010.
  44. ^Masiero, Manuel; Roos, Achim (19 March 2013)."Compression Performance: 7-Zip, MagicRAR, WinRAR, WinZip".Tom's Hardware. Retrieved25 April 2021.

External links

[edit]
Wikimedia Commons has media related to7-Zip.
Archivers with
compression
(comparison)
Free and
open-source
Freeware
Commercial
Non-archiving
compressors
Generic
For code
Audio
compression

(comparison)
Lossy
Lossless
Video
compression

(comparison)
Lossy
MPEG-4 ASP
H.264
HEVC
Others
Lossless
General
Software
packages
Community
Organisations
Licenses
Types and
standards
Challenges
Related
topics
Retrieved from "https://en.wikipedia.org/w/index.php?title=7-Zip&oldid=1316815678"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp