On Thu 13 Jan 2022 at 10:26:55 (+0100), sp...@caiway.net wrote: > > > > > What are you trying to do? > > > > > > I want to extract all man pages and all docs from all packages. I do > > > not want to install the packages. Then make nice search interfaces > > > with dwww and recoll. > > > > > > This is to be used in areas without internet access. I have a local > > > repository.
I'm not sure what you mean by "all packages". Surely you're not going to download the entire Debian repository just to pick up the man pages when they're already available on the web. Many in your collection would seem destined to languish for ever (or until Debian moves on a suite) without ever being consulted. It would seem more efficient to process the man pages for the packages already installed on the system, and provide your local copies through a wrapper that notifies you of any that need providing as and when they are demanded. > > I found a solution: > > > > I made a chroot with debootstrap, minimal install > > then I move all *deb from the repository inside a temp directory in > > the chroot > > > > then I can dpkg --unpack *.deb let the packages get unpacked in the > > system, without installing > > > > then I can copy the /usr/share/man etc. directories to the proper > > place. > > > > Thanks for the ideas! > > No this is no good solution > I must install all packages and this seems an impossible task > Too much questions I have to answer There's nothing more to a .deb file than two .tar.xz archives inside an .ar archive, viz: $ ls -Glg iwd_1.14-3_amd64.deb -rw-r----- 1 561296 May 6 2021 iwd_1.14-3_amd64.deb $ ar vt iwd_1.14-3_amd64.deb rw-r--r-- 0/0 4 May 6 02:06 2021 debian-binary rw-r--r-- 0/0 1900 May 6 02:06 2021 control.tar.xz rw-r--r-- 0/0 559204 May 6 02:06 2021 data.tar.xz $ ar vx iwd_1.14-3_amd64.deb x - debian-binary x - control.tar.xz x - data.tar.xz $ tar tvf control.tar.xz drwxr-xr-x root/root 0 2021-05-06 02:06 ./ -rw-r--r-- root/root 877 2021-05-06 02:06 ./control -rw-r--r-- root/root 1298 2021-05-06 02:06 ./md5sums -rwxr-xr-x root/root 778 2021-05-06 02:06 ./postinst -rwxr-xr-x root/root 644 2021-05-06 02:06 ./postrm -rwxr-xr-x root/root 219 2021-05-06 02:06 ./prerm $ tar tvf data.tar.xz | grep '/man' drwxr-xr-x root/root 0 2021-05-06 02:06 ./usr/share/man/ drwxr-xr-x root/root 0 2021-05-06 02:06 ./usr/share/man/man1/ -rw-r--r-- root/root 898 2021-05-06 02:06 ./usr/share/man/man1/iwctl.1.gz -rw-r--r-- root/root 578 2021-05-06 02:06 ./usr/share/man/man1/iwmon.1.gz drwxr-xr-x root/root 0 2021-05-06 02:06 ./usr/share/man/man5/ -rw-r--r-- root/root 2139 2021-05-06 02:06 ./usr/share/man/man5/iwd.ap.5.gz -rw-r--r-- root/root 4264 2021-05-06 02:06 ./usr/share/man/man5/iwd.config.5.gz -rw-r--r-- root/root 5745 2021-05-06 02:06 ./usr/share/man/man5/iwd.network.5.gz drwxr-xr-x root/root 0 2021-05-06 02:06 ./usr/share/man/man7/ -rw-r--r-- root/root 723 2021-05-06 02:06 ./usr/share/man/man7/iwd.debug.7.gz drwxr-xr-x root/root 0 2021-05-06 02:06 ./usr/share/man/man8/ -rw-r--r-- root/root 1148 2021-05-06 02:06 ./usr/share/man/man8/iwd.8.gz $ That's a bullseye for iwd being inspected on a buster machine. No need to install anything or run specifically "Debian" commands. Cheers, David.