3

Official man sources.list(5) mentions only $(ARCH) placeholder.

I wonder if there are any other placeholders are available, like $(CODENAME).

gavenkoa
  • 1,093
  • 3
    A brief scan of the apt source code. specifically in apt-pkg/sourcelist.cc suggests not, no. – popey Mar 18 '23 at 16:52

1 Answers1

3

Only ARCH and VERSION are available (as explained in the man page). VERSION needs to bet set up to work.

Any other alteration is generally done by using sed and appending or replacing a value.

The following variable substitutions are done on sources.list entries:

  • $(ARCH) is substituted with the base architecture of the system.

  • $(VERSION) is substituted with the distribution version if configured automatically via Apt::DistroVerPkg or manually via the Apt::DistroVersion configuration option.

Rinzwind
  • 299,756