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.
This package is known to build and work properly using an LFS 12.3 platform.
Download (HTTP): https://github.com/ip7z/7zip/archive/24.09/7zip-24.09.tar.gz
Download MD5 sum: 41d0d31a3b0e39a1cbd848c10574fb0b
Download size: 2.1 MB
Estimated disk space required: 39 MB
Estimated build time: 2.3 SBU (with tests)
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 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-24.09