7zip is a file archiver that archives with high compression ratios. It handles 7z, ZIP, GZIP, Brotli, BZIP2, XZ, TAR, APM, ARJ, CAB, CHM, CPIO, CramFS, DEB, DMG, FAT, HFS, ISO, Lizard, LZ5, LZFSE, LZH, LZMA, LZMA2, MBR, MSI, MSLZ, NSIS, NTFS, RAR, RPM, SquashFS, UDF, VHD, WIM, XAR, Z, and Zstd formats.
Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.
Download (HTTP): https://github.com/ip7z/7zip/archive/26.00/7zip-26.00.tar.gz
Download MD5 sum: 0bba20e1926df7187dff85c1199215b8
Download size: 2.2 MB
Estimated disk space required: 45 MB
Estimated build time: 1.4 SBU
Install 7zip by running the following commands:
(for i in Bundles/{Alone,Alone7z,Format7zF,SFXCon} UI/Console; do
make -C CPP/7zip/$i -f ../../cmpl_gcc.mak || exit
done)
This package does not have a test suite.
Now, as the root user:
install -vDm755 CPP/7zip/Bundles/Alone{/b/g/7za,7z/b/g/7zr} \
CPP/7zip/Bundles/Format7zF/b/g/7z.so \
CPP/7zip/UI/Console/b/g/7z \
-t /usr/lib/7zip/ &&
install -vm755 CPP/7zip/Bundles/SFXCon/b/g/7zCon \
/usr/lib/7zip/7zCon.sfx &&
(for i in 7z 7za 7zr; do
cat > /usr/bin/$i << EOF || exit
#!/bin/sh
exec /usr/lib/7zip/$i "\$@"
EOF
chmod 755 /usr/bin/$i || exit
done) &&
cp -rv DOC -T /usr/share/doc/7zip-26.00