Skip to content

Instantly share code, notes, and snippets.

@radiantly
Last active January 30, 2023 20:22
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save radiantly/34b7ec5d4750c5718b2e3db6a6818ecd to your computer and use it in GitHub Desktop.
Save radiantly/34b7ec5d4750c5718b2e3db6a6818ecd to your computer and use it in GitHub Desktop.
Installing zimdump
# UPDATE: zim-tools is now available in Alpine linux Edge respository, so can be installed directly.
# See below https://gist.github.com/radiantly/34b7ec5d4750c5718b2e3db6a6818ecd#gistcomment-3236401 for more info
# Installing zimdump on ubuntu (in a Docker container, so that we don't clutter our ecosystem)
# If you need help installing docker, look here: https://gist.github.com/radiantly/0090d6cc65dc3d4b8eb4ce847050ed80
# Navigate to the folder where your zim file is located.
docker run –rm -it -v $(pwd):/workdir -w /workdir ubuntu:18.04 bash
# Installing dependencies
apt update && apt install -y git cmake ninja-build automake build-essential
# Cloning OpenZIM's zim-tools directory from github
git clone https://github.com/openzim/zim-tools
# Configuring and building
cd zim-tools
./configure
mkdir build
meson . build
cd build
ninja-build
# Running zimdump
./src/zimdump
# This script is not meant to be run, this is for reference of the commands needed to install zimdump.
@rhazegh
Copy link

rhazegh commented Apr 1, 2020

Thanks for this gist.

Looks like the latest zim-tools are available as a package for Alpine Linux edge.

# Navigate to the folder where your zim file is located.
docker run --rm -it -v $(pwd):/workdir -w /workdir alpine:edge /bin/sh

# add the repository that contains libzim and zim-tools
echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories

# Installing dependencies
apk update && apk add libzim zim-tools

# Show version of zimdump
zimdump -V

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment