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

150.1. libzim-9.8.2

Library that reads and writes ZIM archives, the format offline Wikipedia ships in

9.8.2-1 · GPL-2.0-or-later · 0.3 SBU · 1.3 MiB, 23 files · 41_system, 453 of 1047 · ports/core/education/libzim

Homepage: https://openzim.org/

Why it is in KDOS. The comment above the 3 ports from libzim to kiwix-tools in script/phases/41_system/packages.d/education.txt:

kiwix-serve puts a ZIM on localhost and every reader on the machine reaches it over HTTP — including a browser. On a distro whose medium IS the software library, this is the half that makes the library readable.

Depends on: meson, xz, zstd, icu, xapian-core.

Required by (4): goldendict-ng, kiwix-desktop, kiwix-tools, libkiwix.

Sources: libzim-9.8.2.tar.gz (279.0 KiB). Every step kpkg takes applies to this port.

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

build.sh:

meson setup build \
	--prefix=/usr --libdir=lib --buildtype=release \
	-Dtests=false -Dexamples=false -Ddoc=false \
	-Dwith_xapian=true
meson compile -C build
DESTDIR=$PKG meson install --no-rebuild -C build

Libraries: libzim.so.

Directories: /usr/include/zim, /usr/share/licenses/libzim.