libzypp 17.38.5

Environment Variables

Author
  Michael Andres ma@su.nosp@m.se.d.nosp@m.e

# Environment Variables

Note that for Boolean variables we usually test whether the variable exists and not for the assigned value.

## zypp config options

- `ZYPP_CONF=` <PATH> Location of the zypp.conf file.
- `ZYPP_LOCK_TIMEOUT=` <sec> If zypp is locked by another process wait this number of seconds for the lock becoming available. A negative value will wait forever.

## Variables related to repositories

- `ZYPP_REPO_RELEASEVER=` <ver> Overwrite the `$releasever` variable in repository URLs and names (
  See also
    zypp::repo::RepoVariablesStringReplacer).

## Variables related to commit

- `ZYPP_IS_RUNNING=1` Set during commit so packages pre/post/trigger scripts can detect whether rpm was called from within libzypp.
- `ZYPP_SINGLE_RPMTRANS=1` Enable alternative and !!!experimental!!! commit strategy where all rpm operations are executed in a single rpm transaction, which results in much faster commits.

## Variables related to logging

- `ZYPP_LOGFILE=` <PATH> Location of the logfile to write or `-` for stderr.
- `ZYPP_FULLLOG=1` Even more verbose logging (usually not needed).
- `ZYPP_LIBSOLV_FULLLOG=1` Verbose logging when resolving dependencies.
- (`ZYPP_LIBSAT_FULLLOG=1`) deprecated since `libzypp-10.x`, prefer `ZYPP_LIBSOLV_FULLLOG`
- `LIBSOLV_DEBUGMASK=` <INT> Pass value to libsolv::pool_setdebugmask

- `ZYPP_MEDIA_CURL_DEBUG=<1|2>` Log http headers, if `2` also log server responses.
- `ZYPP_MEDIA_CURL_IPRESOLVE=<4|6>` Tell curl to resolve names to IPv4/IPv6 addresses only.
- `ZYPP_METALINK_DEBUG=1` Log URL and priority of the mirrors parsed from a metalink file.

- `ZYPP_RPM_DEBUG=1` Log verbose output from all rpm commands.

## Selecting the mediabackend to use.

- `ZYPP_CURL2=<0|1>` Switch between Curl and Curl2 media backends, Curl2 is the default.
- `ZYPP_PCK_PRELOAD=<0|1>` Explicitly turn parallel HTTP package downloads for commit on or off.

## Variables related to plugins

- `ZYPP_PLUGIN_DEBUG=1` Verbose logging from plugin framework.
- `ZYPP_PLUGIN_TIMEOUT=` <sec> Send/receive timeout for plugin communication.
- `ZYPP_PLUGIN_SEND_TIMEOUT=` <sec> Send timeout for plugin communication.
- `ZYPP_PLUGIN_RECEIVE_TIMEOUT=` <sec> Receive timeout for plugin communication.

- `ZYPP_PLUGIN_APPDATA_FORCE_COLLECT=1` Make RepoManager trigger the appdata collector plugin unconditionally. Can be used with `'zypper` `lr'` (as root) to trigger an initial collect rather than calling `'zypper` `ref` `-f'` or waiting for some repo to be refreshed.

## Variables not for common use (test and debug)

- `ZYPP_MODALIAS_SYSFS=` <PATH> Use this instead of `/sys` to evaluate modaliases.
- `ZYPP_COMMIT_NO_PACKAGE_CACHE=1`
- `ZYPP_TESTSUITE_FAKE_ARCH` Never use this!
- `ZYPPTMPDIR=` <PATH>
- `ZYPP_LOCKFILE_ROOT=` <PATH> Hack to circumvent the currently poor –root support.
- `ZYPP_PROFILING=1`