Discussion:
Contents indices files
(too old to reply)
Frank Guthausen
2024-12-18 18:50:01 UTC
Permalink
Hello.

Maybe this question belongs more to debian-devel than debian-user:

According to the repository format wiki page[1] there exists contents
indices files, e.g. in Debian bookworm main[2]. How are they generated?
Is there documentation in the Debian wiki? Some tool to support this?

I created a repository with reprepro, but this generates Release
and Packages files only, not the Contens-*.gz files. The content
of this repository is invisible to apt-file.

[1] https://wiki.debian.org/DebianRepository/Format#A.22Contents.22_indices
[2] https://ftp.debian.org/debian/dists/bookworm/main/
--
kind regards
Frank
Peter Pentchev
2024-12-18 19:10:01 UTC
Permalink
Post by Frank Guthausen
Hello.
According to the repository format wiki page[1] there exists contents
indices files, e.g. in Debian bookworm main[2]. How are they generated?
Is there documentation in the Debian wiki? Some tool to support this?
I created a repository with reprepro, but this generates Release
and Packages files only, not the Contens-*.gz files. The content
of this repository is invisible to apt-file.
[1] https://wiki.debian.org/DebianRepository/Format#A.22Contents.22_indices
[2] https://ftp.debian.org/debian/dists/bookworm/main/
I'm pretty sure I could find some info on the format of the Contents
files (they seem to be pretty much "path <whitespace> section/pkgname"),
but if your question is really about reprepro, then take a look at
the "Contents" option in the definition of a distribution
(the conf/distributions file); putting "Contents:" on a line by
itself will make reprepro generate the files.

G'luck,
Peter
--
Peter Pentchev ***@ringlet.net ***@debian.org ***@morpheusly.com
PGP key: https://www.ringlet.net/roam/roam.key.asc
Key fingerprint 2EE7 A7A5 17FC 124C F115 C354 651E EFB0 2527 DF13
Frank Guthausen
2024-12-18 19:40:01 UTC
Permalink
On Wed, 18 Dec 2024 21:06:34 +0200
Post by Peter Pentchev
Post by Frank Guthausen
I created a repository with reprepro, but this generates Release
and Packages files only, not the Contens-*.gz files. The content
of this repository is invisible to apt-file.
I'm pretty sure I could find some info on the format of the Contents
files (they seem to be pretty much "path <whitespace>
section/pkgname"), but if your question is really about reprepro,
I understood the format, but not the/any tool to create those files.
Post by Peter Pentchev
then take a look at the "Contents" option in the definition of a
distribution (the conf/distributions file); putting "Contents:" on a
line by itself will make reprepro generate the files.
This was exactly the missing point. I regenerated the repository with
this option and now apt-file sees all the files in the packages. THX
--
kind regards
Frank
Loading...