:: [DNG] APT configuration directives …
Etusivu
Poista viesti
Vastaa
Lähettäjä: Olaf Meeuwissen
Päiväys:  
Vastaanottaja: Ken Dibble
Kopio: dng
Vanhat otsikot: Re: [DNG] OpenVPN 2.5.1-3+devuan1 packaging vs best practices
Aihe: [DNG] APT configuration directives info (was Re: OpenVPN 2.5.1-3+devuan1 packaging vs best practices)
Hi,

Ken Dibble writes:

> On 7/26/22 14:17, Hector Gonzalez Jaime via Dng wrote:
>
>> [...]
>>
>> If you think it's simpler, you can create a file, say
>> /etc/apt/apt.conf.d/99-remounttmp.conf with this:
>>
>> DPkg {
>> // Auto re-mounting of a exec-only /tmp
>> Pre-Invoke { "mount -o remount,exec /tmp"; };
>> Post-Invoke { "test ${NO_APT_REMOUNT:-no} = yes || mount -o
>> remount,noexec /tmp || true"; };
>> };
>>
>> I don't remember where I found this, but have used it for a while.
>
> Thank you very much. Here is the source for that:
> https://wiki.debian.org/ReadonlyRoot
>
> I looked forever in the wrong places using debconf as search criteria
> since that is where the issue is (IMO). There are some clues in the
> apt.conf manpage, but no index of allowable directives.
>
> There appears to be an index of allowable directives at
> https://github.com/szaydel/Rigel-Major/blob/master/config-files/apt.conf
>
> Like most things you have to know where and how to ask.
>
> The directives are also available with: apt-config dump.
>
> The manpage for apt-config is less than helpful in this instance.
>
> For dump it says: Just show the contents of the configuration space.
> which is helpful if you know that the directives are in the contents
> of the configuration space, otherwise, not so much.


I know the feeling. Looking at manual pages, doing web searches and
not really finding what you're looking for.

I often forget to look below /usr/share/doc/$package/ ...

Have a peek at /usr/share/doc/apt/examples/configure-index.gz
--
Olaf Meeuwissen