Differences between revisions 1 and 2
Revision 1 as of 2019-08-23 17:26:36
Size: 618
Editor: nodiscc
Comment: draft refactoring of https://wiki.debian.org/AptConf and other apt configuration pages
Revision 2 as of 2019-08-23 17:27:27
Size: 722
Editor: nodiscc
Comment: WIP
Deletions are marked like this. Additions are marked like this.
Line 12: Line 12:
=== apt.conf.d === apt.conf.d ===
Line 18: Line 18:
 * {{{Dpkg::Pre-Install-Pkgs {"mycommand";};: executes {{{mycommand}}} before package installation/unpacking by Dpkg.  * {{{Dpkg::Pre-Install-Pkgs {"mycommand";};}}}: executes {{{mycommand}}} before package installation/unpacking by Dpkg.
 * {{{Dpkg::Pre-Invoke {"mycommand";};}}}: ???
 * {{{Dpkg::Post-Invoke {"mycommand";};}}}: ???

WIP: refactoring of https://wiki.debian.org/AptConf and other apt configuration pages


Apt is configured by several resources, including:

apt.conf.d

Apt accepts configuratino files (without extension) in /etc/apt/apt.conf.d/. These are processed by Apt in numeric/alphabetical order. /etc/apt/apt.conf is also valid but deprecated.

These files can contain various directives:

  • Dpkg::Pre-Install-Pkgs {"mycommand";};: executes mycommand before package installation/unpacking by Dpkg.

  • Dpkg::Pre-Invoke {"mycommand";};: ???

  • Dpkg::Post-Invoke {"mycommand";};: ???