Score:3

Possible placeholders in sources.list

gu flag

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

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

pl flag
A brief scan of the apt source code. specifically in `apt-pkg/sourcelist.cc` suggests not, no.
Score:3
cn flag

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.

gavenkoa avatar
gu flag
Confirming: I saw many projects embed code name via `sed`/`bash` or other template solutions.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.