Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

90.11. 7zip-26.03

Packs and unpacks 7z, zip, rar, tar, iso, cab, deb, rpm and disk images, with 7-Zip's 7zz

26.03-2 · LGPL-2.1-or-later AND BSD-3-Clause AND BSD-2-Clause AND LicenseRef-unRAR-restriction · 0.5 SBU · 3.0 MiB, 5 files · 41_system, 66 of 1047 · ports/core/archiver/7zip

Homepage: https://7-zip.org/

Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/archiver.txt:

7zz lists and extracts every archive, ISO and disk image yazi previews.

Depends on: nothing a recipe names.

Required by (2): ark, yazi.

Sources: 7zip-26.03.tar.gz (2.1 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install 7zip'

build.sh:

export CFLAGS_BASE2="$CFLAGS -Wno-error=array-bounds"
export CXXFLAGS_BASE2="$CXXFLAGS -Wno-error=array-bounds"
export LDFLAGS_STATIC_3="$LDFLAGS"
cd CPP/7zip/Bundles/Alone2
make -f ../../cmpl_gcc.mak
install -Dm755 b/g/7zz "$PKG/usr/bin/7zz"

ln -s 7zz "$PKG/usr/bin/7z"

install -Dm644 "$SRC/DOC/License.txt" "$PKG/usr/share/licenses/$name/License.txt"
install -Dm644 "$SRC/DOC/copying.txt" "$PKG/usr/share/licenses/$name/copying.txt"
install -Dm644 "$SRC/DOC/unRarLicense.txt" "$PKG/usr/share/licenses/$name/unRarLicense.txt"

Programs: 7z, 7zz.

Directories: /usr/share/licenses/7zip.