| created | 2026-03-18 18:28:01 +0800 |
|---|---|
| modified | 2026-03-18 18:53:18 +0800 |
Wikiman is a command-line tool that provides offline access to documentation from various sources, including Arch Wiki, Gentoo Wiki, FreeBSD docs, tldr-pages, and DevDocs. This tutorial will guide you through installing the binary package and downloading the required documentation sources.
- A Debian-based Linux distribution (the provided package is a
.debfile). wgetorcurlinstalled (for downloading files).sudoprivileges for installing the package and copying files to system directories.
Download the .deb package from the official releases page and install it using dpkg.
# Download the .deb package
wget https://github.com/filiparag/wikiman/releases/download/2.14.1/wikiman-2.14.1-1_any.deb
# Install the package
sudo dpkg -i wikiman-2.14.1-1_any.debIf you encounter dependency errors, run:
sudo apt-get install -fWikiman needs documentation sources to function. Download all the required source tarballs into a single directory (e.g., ~/wikiman-sources). Create the directory and navigate into it:
mkdir ~/wikiman-sources
cd ~/wikiman-sourcesNow download the source archives:
wget https://github.com/filiparag/wikiman/releases/download/2.14.1/freebsd-docs_20260110.source.tar.xz
wget https://github.com/filiparag/wikiman/releases/download/2.14.1/gentoo-wiki_20260110.source.tar.xz
wget https://github.com/filiparag/wikiman/releases/download/2.14.1/tldr-pages_20260110.source.tar.xz
wget https://github.com/filiparag/wikiman/releases/download/2.14.1/arch-wiki_20260110.source.tar.xz
wget https://github.com/filiparag/wikiman/releases/download/2.14.1/devdocs_20260110.source.tar.xzNote: The filenames include a date (e.g.,
20260110). Future releases may have different dates; adjust the URLs accordingly.
Extract all downloaded .tar.xz files. You can do this one by one or use a simple loop:
for f in *.tar.xz; do
echo "Extracting $f..."
tar -xf "$f"
doneThis will create several directories (like freebsd, gentoo, tldr, arch, devdocs) inside your current folder.
The extracted documentation folders need to be placed in /usr/share/doc so that Wikiman can find them. Use sudo to copy them recursively:
sudo cp -R * /usr/share/doc/This copies all extracted directories (and any other files) to /usr/share/doc. If you prefer to copy only the documentation folders, you can be more specific, but the wildcard works as long as only the extracted directories are present.
Run Wikiman to test if everything is set up correctly:
wikiman --helpYou can also search for a topic, e.g.:
wikiman grepWikiman should display results from the available documentation sources.
- The sources are large; ensure you have enough disk space (several hundred MB).
- If you ever need to update the documentation, repeat Steps 2–4 with the latest tarballs.
- For more details on configuring Wikiman, refer to the official repository.
- Permission denied: Make sure you used
sudowhen copying to/usr/share/doc. - No documentation found: Verify that the extracted directories exist in
/usr/share/docand contain files. Wikiman expects them to be directly under/usr/share/doc(e.g.,/usr/share/doc/arch-wiki). - Missing dependencies: Run
sudo apt install -fafter installing the.debto fix any missing packages.
You now have a fully functional offline documentation system! Enjoy exploring the wealth of information at your fingertips.