Official man sources.list(5)
mentions only $(ARCH)
placeholder.
I wonder if there are any other placeholders are available, like $(CODENAME)
.
Official man sources.list(5)
mentions only $(ARCH)
placeholder.
I wonder if there are any other placeholders are available, like $(CODENAME)
.
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.
sed
/bash
or other template solutions.
– gavenkoa
Mar 19 '23 at 16:18
apt-pkg/sourcelist.cc
suggests not, no. – popey Mar 18 '23 at 16:52