Score:0

In a dockerfile, what is the purpose of "#APT::Get::Install-Recommends"?

bd flag

Inside a Dockerfile I have the lines:

RUN echo '#APT::Get::Install-Recommends "0";' >/etc/apt/preferences.d/99recommends
RUN echo '#APT::Get::Install-Suggests "0";' >>/etc/apt/preferences.d/99recommends

I just want to know what these two lines do.

es flag
I suppose nothing significant as there is a hashtag (#) in the beginning of lines added to the file.
ru flag
The hashtag makes the comment irrelelvant, but it's probably done that way so you can *change* configurations in the dockerfile by removing the hashmark at the beginning
hr flag
Those lines look more like they would belong in an `apt.conf.d` file than in an apt `preferences.d` file though?
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.