diff options
author | Julian Andres Klode <julian.klode@canonical.com> | 2018-12-10 16:52:59 +0100 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2018-12-10 17:31:24 +0100 |
commit | 806e94dcd8dbdf7bf1909657fd4331cfe17b4ab0 (patch) | |
tree | 6c0795c08971f80cd532dd66416b96215d2ae482 /doc/apt.conf.5.xml | |
parent | 37bdbe03d44975951d2518bb9b3d3636081dca6a (diff) |
Set PATH=/usr/sbin:/usr/bin:/sbin:/bin when running dpkg
This avoids a lot of problems from local installations of
scripting languages and other stuff in /usr/local for which
maintainer scripts are not prepared.
[v3: Inherit PATH during tests, check overrides work]
[v2: Add testing]
Diffstat (limited to 'doc/apt.conf.5.xml')
-rw-r--r-- | doc/apt.conf.5.xml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/apt.conf.5.xml b/doc/apt.conf.5.xml index 64a26bc4a..ffbcba5a4 100644 --- a/doc/apt.conf.5.xml +++ b/doc/apt.conf.5.xml @@ -776,6 +776,13 @@ APT::Compressor::rev { using the list notation and each list item is passed as a single argument to &dpkg;.</para></listitem> </varlistentry> + + <varlistentry><term><option>Path</option></term> + <listitem><para>This is a string that defines the <envar>PATH</envar> + environment variable used when running dpkg. It may be set to any + valid value of that environment variable; or the empty string, in + which case the variable is not changed.</para></listitem> + </varlistentry> <varlistentry><term><option>Pre-Invoke</option></term><term><option>Post-Invoke</option></term> <listitem><para>This is a list of shell commands to run before/after invoking &dpkg;. |