grml / grml-debootstrap

wrapper around debootstrap
61 stars 27 forks source link

Use DEB822 apt format #203

Open mika opened 1 year ago

mika commented 1 year ago

We could consider usage of DEB822 style apt sources.list configuration, like:

# cat /etc/apt/sources.list.d/debian.sources 
Types: deb
# http://snapshot.debian.org/archive/debian/20230202T000000Z
URIs: http://deb.debian.org/debian
Suites: unstable
Components: main
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg

See https://manpages.debian.org/bullseye/apt/sources.list.5.en.html for further information

adrelanos commented 1 year ago

Quote:

This is a new format supported by apt itself since version 1.1. Previous versions ignore such files with a notice message as described earlier. It is intended to make this format gradually the default format, deprecating the previously described one-line-style format, as it is easier to create, extend and modify for humans and machines alike especially if a lot of sources and/or options are involved. Developers who are working with and/or parsing apt sources are highly encouraged to add support for this format and to contact the APT team to coordinate and share this work. Users can freely adopt this format already, but may encounter problems with software not supporting the format yet.

Yes, seems the way to go.