{"id":13342929,"url":"https://github.com/xmake-mirror/p7zip","last_synced_at":"2026-05-23T20:34:35.129Z","repository":{"id":108282626,"uuid":"161708773","full_name":"xmake-mirror/p7zip","owner":"xmake-mirror","description":"p7zip source mirror","archived":false,"fork":false,"pushed_at":"2018-12-13T23:59:46.000Z","size":4746,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-26T06:00:45.157Z","etag":null,"topics":["xmake"],"latest_commit_sha":null,"homepage":"http://sourceforge.net/projects/p7zip/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xmake-mirror.png","metadata":{"files":{"readme":"README","changelog":"ChangeLog","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-13T23:57:39.000Z","updated_at":"2018-12-14T00:45:03.000Z","dependencies_parsed_at":"2023-05-21T09:30:47.075Z","dependency_job_id":null,"html_url":"https://github.com/xmake-mirror/p7zip","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/xmake-mirror/p7zip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmake-mirror%2Fp7zip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmake-mirror%2Fp7zip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmake-mirror%2Fp7zip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmake-mirror%2Fp7zip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xmake-mirror","download_url":"https://codeload.github.com/xmake-mirror/p7zip/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmake-mirror%2Fp7zip/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33412082,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T18:09:33.147Z","status":"ssl_error","status_checked_at":"2026-05-23T18:09:31.380Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["xmake"],"created_at":"2024-07-29T19:30:08.203Z","updated_at":"2026-05-23T20:34:35.112Z","avatar_url":"https://github.com/xmake-mirror.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"    p7zip 16.02\n    ===========\n\nHomepage : http://p7zip.sourceforge.net/\n\np7zip is a port of the Windows programs 7z.exe and 7za.exe provided by 7-zip.\n\n7-zip is a file archiver with the highest compression ratio.\nHomepage : www.7-zip.org\n\n  7z uses plugins (7z.so and Codecs/Rar.so) to handle archives.\n  7za is a stand-alone executable (7za handles less archive formats than 7z).\n  7zr is a light stand-alone executable that supports only 7z/LZMA/BCJ/BCJ2.\n\n  Some GUI :\n    7zG  : beta  stage\n    7zFM : alpha stage\n\nCAUTION :\n---------\n\n- FIRST : DO NOT USE the 7-zip format for backup purpose on Linux/Unix because :\n  - 7-zip does not store the owner/group of the file\n\n  On Linux/Unix, in order to backup directories you must use tar !\n  to backup a directory  : tar cf - directory | 7za a -si directory.tar.7z\n  to restore your backup : 7za x -so directory.tar.7z | tar xf -\n\n- if you want to send files and directories (not the owner of file)\n  to others Unix/MacOS/Windows users, you can use the 7-zip format.\n\n  example : 7za a directory.7z  directory\n\n  do not use \"-r\" because this flag does not do what you think\n  do not use \"directory/*\" because of \".*\" files\n   (example : \"directory/*\" does not match \"directory/.profile\")\n\nBUILD :\n-------\n\n  If you have downloaded the \"bin\" package,\n    use directly the program bin/7za.   (tested on Debian 3, Ubuntu 14.10)\n    As the program is statically linked, its should run on many x86 or amd64 linux.\n\n  If you have downloaded the \"source\" package,\n\n    According to your OS, copy makefile.linux,\n    makefile.freebsd, makefile.cygwin, ...\n        over makefile.machine\n\n  Example : building 7za, 7z (with its plugins), 7zr and Client7z and passing the internal tests\n    cp makefile.linux_x86_asm_gcc_4 makefile.linux\n    make all_test\n\n\n    If you want to make a parallel build on a 4 cpu machine : make -j 4 TARGET\n\n    If you have trouble, try : make -f makefile.oldmake TARGET\n\n    make depend   : to rebuild the makefile.depend\n    make clean    : to clean all directories\n    make          : to build bin/7za\n    make sfx      : to build bin/7zCon.sfx (7za can now create SFX archive)\n    make 7z       : to build bin/7z and its plugins :\n                          - \"bin/7z.so\" (GNU LGPL + AES code license)\n                          - \"bin/Codecs/Rar.so\" (GNU LGPL + unRAR restriction)\n    make 7zr      : to build bin/7zr\n    make all      : to build bin/7za and bin/7zCon.sfx\n    make all2     : to build bin/7za, bin/7z (with its plugins) and bin/7zCon.sfx\n    make all3     : to build bin/7za, bin/7z (with its plugins), bin/7zr and bin/7zCon.sfx\n    make test     : to test bin/7za (extracting, archiving, password ...)\n    make test_7z  : to test bin/7z  (extracting, archiving, password ...)\n    make test_7zr : to test bin/7zr (extracting, archiving, ...)\n\n    make 7zG      : to build bin/7zG and its plugins :\n                          - \"bin/7z.so\" (GNU LGPL + AES code license)\n                          - \"bin/Codecs/Rar.so\" (GNU LGPL + unRAR restriction)\n    make test_7zG : to test bin/7zG (extracting, archiving, ...)\n\n\n  this procedure has been tested on :\n   - x86 CPU :\n    Linux - Debian 3.0 Stable\n    Linux - Ubuntu 14.10\n    Linux - Ubuntu 15.10    \n    MacOS 10.6.6\n\n   - AMD64 CPU :\n    Linux - Ubuntu 14.10\n    Linux - Ubuntu 15.10     \n    MacOS 10.6.6\n\n   - powerpc CPU :\n    MacOS X 10.4 (ppc)\n\n   - arm :\n    Android (Galaxy Note 3)\n\n  Some older versions of p7zip were tested :\n   - x86 CPU :\n    DOS   - (built with DJGPP, see http://blairdude.googlepages.com/p7zip )\n    Linux - Redhat 9.0 Standart\n    Linux - Fedora 2 (Redhat) (gcc 3.3.3 and gcc-3.4.1 with\n                stack-smashing protector from www.trl.ibm.com/projects/security/ssp/)\n    Linux - Mandrake 10.0 Official\n    Linux - Ubuntu 8.04\n    FreeBSD 5.2.1 (gcc 3.3.3)\n    MacOS 10.4.8\n    NetBSD\n    CYGWIN_NT-5.1 1.5.9(0.112/4/2) 2004-03-18 23:05 i686 Cygwin\n    Solaris  9 (x86) with gcc 3.3.2\n    Solaris 10 (x86)\n\n   - alpha CPU :\n    Linux - Debian 3.0 (alpha) with gcc 2.95.4\n\n   - AMD64 CPU :\n    Linux - SuSE 8 ES (AMD64 Opteron) with gcc 3.2.2\n    Linux - Fedora 4  (AMD64 Turion)  with gcc 4.0.1\n    Linux - Ubuntu 8.10\n\n   - Itanium CPU :\n        HP-UX B.11.31 U ia64 with aCC (HP C/aC++ B3910B A.06.14 [Feb 22 2007])\n\n   - s390x CPU :\n    Linux - SUSE Enterprise Linux 10 - with gcc 4.1.2\n    ( only the 32bits built works, the 64bits built does not pass the tests )\n\n   - sparc CPU :\n    Solaris 9 (sparc) with gcc 3.3.2\n\n   - sparc CPU :\n    Solaris 8 (sparc) with gcc 2.95.2\n\n\n   - powerpc CPU :\n    MacOS X 10.1/darwin 5.5 with gcc 932.1 (gcc 2.95.2)\n    MacOS X 10.3 with XCode 1.5\n\n   - openpower CPU :\n        Linux openpower-linux1 2.6.5-7.97-pseries64 (ppc64) with gcc 3.3.3\n\n   - IBM :\n    AIX 5.3 with gcc 4.1.0\n\n   - Tru64 :\n    OSF 5.1 with gcc 3.4.2\n\n   - PA-RISC :\n    HP-UX 11.11 with aCC (HP ANSI C++ B3910B A.03.73)\n    HP-UX 11.11 with gcc 3.4.2 (7za and 7zr : OK, 7z : failed because of a buggy gcc for HP-UX,\n                                    plugins don't work because C++ constructors are not called !)\n\n\nBUILD with cmake\n----------------\n  You can only build 7za.\n\n  cd CPP/7zip/CMAKE\n\n  ./generate.sh  (or ./generate_xcode.sh for MacOSX)\n  \n  In CPP/7zip, you now have directories like :\n   - P7ZIP.codeblocks/\n   - P7ZIP.EclipseCDT4/\n   - P7ZIP.Unix/\n   (or P7ZIP.Xcode/  for MacOSX)\n   \n   \n  For the target \"Unix Makefiles\" :\n\t- cd CPP/7zip/P7ZIP.Unix\n\t- make\n\t\n  Remark : these targets use only C/C++ code. To build targets with ASM code you must read the previous paragraph.\t\n\n  For others target, use the IDE (CodeBlocks, KDevelop3, Eclipse CDT4)\n\nINSTALL :\n---------\n\n  method 1\n  --------\n  - edit install.sh to change DEST_HOME\n  - ./install.sh : to install\n  Remark : you must be \"root\" to install 7za in the directory \"/usr/local\"\n\n  method 2\n  --------\n  - 7za is a stand-alone program, you can put this program where you want.\n  example :  cp bin/7za /usr/local/bin/7za\n\n  - 7z needs its plugins. You must copy the file 7z, 7z.so\n    and the directory Codecs in the same destination directory.\n\n  - if you want to be able to create SFX archive, copy bin/7zCon.sfx\n  to the directory where 7za or 7z can be found.\n\n\nUSAGE:\n------\n  Remark : you can replace 7za with 7z.\n\n  7za t archive.7z  : tests files in the archive archive.7z\n  7za l archive.7z  : lists all files from archive archive.7z\n  7za x archive.7z  : extracts all files from archive archive.7z\n                   to the current directory\n\n  7za a archive.7z file1 fileN : add files to the archive archive.7z\n\n  7za a archive.7z  dir1 :  add all files and subdirectories from directory \"dir1\" to archive archive.7z\n\n  CAUTION : do not use the flag \"-r\" unless you know what you are doing ...\n\n  7za a -sfx archive.x dir1 : add all files from directory \"dir1\" to SFX archive archive.x\n\n  You can also add or extract files to/from .zip or .tar archives.\n  You can also compress/uncompress .gz or .bz2 files.\n\n  7za a -tzip   archive.zip file file2 file3\n  7za a -ttar   archive.tar file\n  7za a -tgzip  file.gz     file\n  7za a -tbzip2 archive.bz2 file\n\n  You can use password for archives:\n  7za a -pmy_password archive.7z  dir1\n\n  For .7z archive only, you can enable archive header encryption with \"-mhe\"\n  7za a -mhe=on -pmy_password archive.7z  dir1\n\n  For more, see the documentation of 7za.exe in DOC/MANUAL directory\n  7za a -t7z  -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on archive.7z  dir1\n      adds all files from directory \"dir1\" to archive archive.7z\n      using \"ultra settings\".\n      -t7z     : 7z archive\n      -m0=lzma : lzma method\n      -mx=9    : level of compression = 9 (Ultra)\n      -mfb=64  : number of fast bytes for LZMA = 64\n      -md=32m  : dictionary size = 32 megabytes\n      -ms=on   : solid archive = on\n\n  To use the new codec \"lzma2\"\n  7za a -m0=lzma2 archive.7z directory\n\n\nBENCHMARKS :\n------------\n  7za b : bench LZMA codec\n  7z b -mm=crc : make internal crc check.\n  7za b \"-mm=*\" : test all methods\n\n\n\nhugetlbfs (large pages) :\n-------------------------\n\n  Using huges pages in Linux requires some preparations.\n  First, make sure your running kernel has support for hugetlbfs compiled in:\n\n  ~$ grep hugetlbfs /proc/filesystems\n  nodev       hugetlbfs\n\n  You can view your current huge page configuration like this:\n\n  ~$ grep Huge /proc/meminfo\n  HugePages_Total:       0\n  HugePages_Free:        0\n  HugePages_Rsvd:        0\n  HugePages_Surp:        0\n  Hugepagesize:       2048 kB\n\n  In this case the size of a huge page is 2 MiB.\n  So, if you have 2 GiB of RAM and want to reserve 512 MiB for huge pages,\n  you would need 256 pages.\n\n  Do the following as root:\n\n  ~# echo 296 \u003e/proc/sys/vm/nr_hugepages\n  ~# grep Huge /proc/meminfo\n  HugePages_Total:     296\n  HugePages_Free:      296\n  HugePages_Rsvd:        0\n  HugePages_Surp:        0\n  Hugepagesize:       2048 kB\n\n  Finally, make access from user space possible:\n\n  ~# mkdir /hugepages\n  ~# mount -t hugetlbfs -o rw,nosuid,nodev,noexec,noatime none /hugepages\n  ~# chmod 1777 /hugepages\n\n  Option 1 : Now huge pages are configured.\n           In your shell, set the environment variable HUGETLB_PATH to the mount point:\n           ~$ export HUGETLB_PATH=/hugepages\n  or\n\n  Option 2 : Let p7zip find out the first directory with the type \"hugetlbfs\"\n\n\n  To enable huge page use in p7zip, pass the '-slp' switch to it.\n  Ex: 7za -slp a t.7z dir\n\n\n\n  If you want this to be a permanent setup :\n  - mkdir /hugepages\n\n  - add an entry to your /etc/fstab so that when you reboot your computer,\n    your hugetlbfs will mount automatically :\n    hugetlbfs       /hugepages  hugetlbfs     rw,nosuid,nodev,noexec,noatime   0 0\n\n  - add this in your /etc/rc.local :\n    chmod 1777 /hugepages\n    echo 296 \u003e  /proc/sys/vm/nr_hugepages\n\n  optional : export HUGETLB_PATH=/hugepages\n\n  To enable huge page use in p7zip, pass the '-slp' switch to it : 7za -slp b\n\n\n  Remark : with current CPU : \"7za -slp b\" is not faster than \"7za b\".\n           If you want to see some speedup, compress at least 300MB\n           Ex : 7za -slp -mx=9 -a big_file.tar.7z  big_file.tar\n\n\nLICENSE :\n---------\n  please read DOC/License.txt.\n\nLIMITATIONS from 7-zip :\n------------------------\n\n  - does not support uid/gid for the .tar format (so, use tar on Unix)\n\nLIMITATIONS for Unix version only :\n-----------------------------------\n\n  - can handle properly UNICODE filenames only if the environment is UTF-8.\n  Example : export LANG=en_US.UTF-8 ; unset LC_CTYPE\n  Remark  : see the possible values for LANG in the directory\n            - /usr/lib/locale   : Fedora 2 / Solaris 8\n            - /usr/share/locale : OpenBSD / Debian / FreeBSD / MacOS X / Mandrake 10.1 / NetBSD\n\n    On Linux, to display the available locales : locale -a\n\n  p7zip relies on LC_CTYPE and then on LANG to convert name to/from UNICODE.\n  the command \"locale\" should display these environment variables.\n  you can also do \"echo $LC_CTYPE\" and \"echo $LANG\".\n\n  If you do not plan to export your archive, you can use the flag \"-no-utf16\".\n  Usage :\n    7za a -no-utf16 archive.7z dirOrFile1 ... dirOrFileN\n    7za t -no-utf16 archive.7z\n    7za l -no-utf16 archive.7z\n    7za x -no-utf16 archive.7z\n\n  - ignores Windows file access permissions (files are created with default permissions)\n\n  see also TODO file.\n\nDEVELOPPER CORNER:\n------------------\n\n  - static analysis with cppcheck\n    make cppcheck\n\n  - static analysis with clang\n    scan-build make all4 2\u003e\u00261 | tee -i scan-build.out\n\n  - dynamic analysis : valgrind\n    cp makefile.linux_valgrind makefile.machine\n    make test\n    \n  - dynamic analysis : gcc sanitize\n    cp makefile.linux_amd64_sanitizer makefile.machine\n    make test\n\n  - WaitForMultipleObject has no equivalence on Unix.\n  - Events don't exist.\n  - sizeof(wchar_t) = 4 with GCC (2 with MS VC++)\n  - \"FIXME\" in source code indicates that you should add codes to better handle all cases.\n\n  - \"FIXED\" in source code indicates that the original code has been changed to work in Unix environment.\n\n  see also TODO file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxmake-mirror%2Fp7zip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxmake-mirror%2Fp7zip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxmake-mirror%2Fp7zip/lists"}