#1121031 apt should support reading config/source/list files from /usr

Package:
apt
Source:
apt
Description:
commandline package manager
Submitter:
Gioele Barabucci
Date:
2025-11-19 20:47:02 UTC
Severity:
normal
#1121031#5
Date:
2025-11-19 20:44:26 UTC
From:
To:
Dear Apt developers,

currently Apt reads its configuration from /etc/apt/apt.conf{,.d} and
its sources from /etc/apt/sources.list{,.d}.

Could Apt also support the so called "stateless" configuration pattern,
i.e. reading the default configuration from /usr while allowing
overriding it in /etc, giving system administrators a way to define
local configuration without changing any distro-provided files?

In first approximation, this would mean falling back to
/usr/lib/apt.conf{,.d} and /usr/lib/apt/sources.list{,.d} if their /etc
counterparts do not exist.

Kind regards,