Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #243964

Re: restructure folders

From David Wright <deblis@lionunicorn.co.uk>
Newsgroups linux.debian.user
Subject Re: restructure folders
Date 2022-01-13 17:10 +0100
Message-ID <DFaPM-1Fz-11@gated-at.bofh.it> (permalink)
References (2 earlier) <DF0x3-2Rl-1@gated-at.bofh.it> <DF1jr-3j4-1@gated-at.bofh.it> <DF2fv-3TE-1@gated-at.bofh.it> <DF2Se-4mv-1@gated-at.bofh.it> <DF4AF-5Hx-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu 13 Jan 2022 at 10:26:55 (+0100), sp007@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.

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: restructure folders Emanuel Berg <moasenwood@zoho.eu> - 2022-01-13 05:50 +0100
  Re: restructure folders "sp007@caiway.net" <sp007@caiway.net> - 2022-01-13 06:10 +0100
    Re: restructure folders Emanuel Berg <moasenwood@zoho.eu> - 2022-01-13 06:20 +0100
    Re: restructure folders Charles Curley <charlescurley@charlescurley.com> - 2022-01-13 07:00 +0100
      Re: restructure folders "sp007@caiway.net" <sp007@caiway.net> - 2022-01-13 08:10 +0100
        Re: restructure folders "sp007@caiway.net" <sp007@caiway.net> - 2022-01-13 08:40 +0100
          Re: restructure folders "sp007@caiway.net" <sp007@caiway.net> - 2022-01-13 10:30 +0100
            Re: restructure folders Greg Wooledge <greg@wooledge.org> - 2022-01-13 13:30 +0100
              Re: restructure folders Jonathan Dowland <jon+debian-user@dow.land> - 2022-01-14 16:50 +0100
            Re: restructure folders David Wright <deblis@lionunicorn.co.uk> - 2022-01-13 17:10 +0100

csiph-web