Differences between revisions 2 and 3
Revision 2 as of 2019-08-23 17:27:27
Size: 722
Editor: nodiscc
Comment: WIP
Revision 3 as of 2019-08-23 17:29:56
Size: 909
Editor: nodiscc
Deletions are marked like this. Additions are marked like this.
Line 19: Line 19:
 * {{{Dpkg::Pre-Invoke {"mycommand";};}}}: ???
 * {{{Dpkg::Post-Invoke {"mycommand";};}}}: ???
 * {{{Dpkg::Pre-Invoke {"mycommand";};}}}: executes {{{mycommand}}} before apt calls dpkg
 * {{{Dpkg::Post-Invoke {"mycommand";};}}}: executes {{{mycommand}}} after apt calls dpkg
 * {{{Pre-Install-Pkgs}}}: ??? /* package filename in /var/cache/apt/archives/ is passed as stdin */

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

Apt is configured by several resources, including:


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";};: executes mycommand before apt calls dpkg

  • Dpkg::Post-Invoke {"mycommand";};: executes mycommand after apt calls dpkg

  • Pre-Install-Pkgs: ???