# Only the system vendor should modify this file, ordinary users
# should not have to change anything.

[main]

# The file to read before this file, to override values. If the file
# does not exist then it is ignored.
#
# If you want to use the defaults just the same as yum, then setting
# this to "/etc/yum.conf" will do what you want.
#
# Please be aware the yum developers do not want this to be the default
# as zif might treat options slightly differently on how yum treats
# them.
#
override_config=

# The directory to download packages and metadata to
#
cachedir=/var/cache/zif/$basearch/$releasever

# The default prefix of the rpmdb
#
# Normal users do not have to change this, and this can value can also
# be changed on the command line or using the C API.
#
prefix=/

# Some packages are allowed multiple versions, e.g. most kernel packages
#
installonly_limit=3

# These packages are allowed multiple versions
#
installonlypkgs=kernel,kernel-bigmem,kernel-enterprise,kernel-smp,kernel-modules,kernel-debug,kernel-unsupported,kernel-source,kernel-devel,kernel-PAE,kernel-PAE-debug

# Whether to keep packages after they've been downloaded
#
keepcache=0

# The pid file used as a lock. If you want to share the metadata lock
# with yum, set this to "/var/run/yum" and lock_compat=true,
# although this is not reccomended by the yum developers.
#
pidfile=/var/run/zif

# The time in days that defines if a package added to a repo is 'new'
# and should be added to the new group.
#
recent=7

# The repository configuration location, i.e. where the .repo file go.
#
reposdir=/etc/yum.repos.d

# The number of times a file download should be retried before the
# mirror is skipped and blacklisted.
#
retries=3

# Always assume the answer to any promps are yes, and do not ask any
# questions at all.
#
assumeyes=false

# The maximum bandwidth to use in bytes/second.
#
# TODO: implement
#
bandwidth=0

# If we should allow rpm to check disk space before starting the
# transaction.
#
diskspacecheck=true

# These are packages that cannot change arch on update.
#
# TODO: implement
#
exactarchlist=kernel,kernel-smp,kernel-hugemem,kernel-enterprise,kernel-bigmem,kernel-devel,kernel-PAE,kernel-PAE-debug

# If set, then only packages that provide the exacy system dep will be
# installed. This means that i386 packages will not be installed on a
# x64 system to satisfy deps, for example.
#
exactarch=false

# Packages to ignore from the updates check. Packages listed here will
# not be updated, installed or removed.
#
exclude=

# This is how mirrors are chosen if one fails. The options are:
# - roundrobin: random selection
# - ordered: the mirror next in the list is chosen, which makes it
#            predictable over several runs.
#
failovermethod=roundrobin

# If we should check the remote packages for thier GPG signatures. This
# overrides any gpgcheck value specified in each repo file.
#
gpgcheck=true

# If we should check the local packages for thier GPG signatures. This
# overrides any gpgcheck value specified in each repo file.
#
localpkg_gpgcheck=true

# This decides how Zif defines a comps group as installed or available.
# Packages have to be in the specified groups to be 'installed'.
# Options are:
# - mandatory
# - default
# - optional
#
# TODO: implement
#
group_package_types=mandatory,default

# The logfile to write package operations to.
#
logfile=/var/log/zif.log

# The default metadata maximum age in seconds. Only metadata older than
# this will be re-downloaded.
#
# If this number is smaller then more metadata will be downloaded,
# but results will be more up to date.
#
metadata_expire=604800

# The default metalink and mirrorlist maximum age in seconds.
# Only metadata older than this will be re-downloaded.
#
# This value should not be below the value of metadata_expire.
#
mirrorlist_expire=604800

# How we should deal with multilib packages
# The options are 'best' and 'all', where:
#  - all: install any/all arches you can
#  - best: use the 'best  arch' for the system
#
# TODO: implement
#
multilib_policy=best

# This is a list of packages that cannot be removed or obsoleted.
#
protected_packages=zif

# The proxy used to download packages, e.g. "hal.school.ac.uk"
#
proxy=

# The proxy password.
#
proxy_password=

# The proxy username.
#
proxy_username=

# Should we perform a signature check on the repodata. This overrides
# any setting in the repo files.
#
# TODO: implement
#
repo_gpgcheck=true

# Whether we should do the rpm test transaction.
#
rpm_check_debug=true

# RPM output level. Options are:
#  - critical
#  - emergency
#  - error
#  - warn
#  - debug
#  - info
#
rpmverbosity=info

# If we should enable skip-broken by default, which skips packages (and
# dependencies) that would fail the transaction.
#
skip_broken=false

# If we should skip repos that are not contactable.
#
# If this is disabled and a repository is not available and enabled,
# the action will fail.
#
skip_if_unavailable=true

# Number of seconds to wait for a remote connection before timing out.
#
timeout=5

# If we should enable background mode.
#
# If run with background mode, downloads will happen more slowly, and
# calculating update lists will take longer. This is designed for when
# libzif is used in background daemons and where the user is not waiting
# for results.
#
# Note: running in background mode may actually consume slightly more
# power than running at full speed. This is called race to idle.
# The reason this mode is supported is so that we can do operations in
# the background unnoticed, without disturbing things like
# gapless-music-playback and animations in webpages.
#
background=false

# The directory to place boot images needed for upgrade
#
upgrade_boot_dir=/boot/upgrade

# The directory to download release data
#
upgrade_cache_dir=/var/cache/zif

# The directory to create the upgrade repository
#
# NOTE: Anaconda hardcodes "/var/cache/yum/preupgrade" in
# pyanaconda/yuminstall.py for the configBaseURL method.
#
# Changing this probably will not work without fixing anaconda.
#
upgrade_repo_dir=/var/cache/yum/preupgrade

# The URI location to get the releases information from
#
upgrade_releases_uri=http://mirrors.fedoraproject.org/releases.txt

# The number of tries to attempt to get the package manager lock.
# If the lock still cannot be aquired after this number, then exit with
# an error.
#
lock_retries=10

# The delay to wait inbetween each lock attempt, in ms.
#
lock_delay=2000

# If we should work in lock compatibility mode and use one lock file
# for all actions.
#
lock_compat=false

# The install root of the yumdb, which is the most inappropriately
# named software component ever.
#
# It's not really a database. It's just a dump of files with no schema.
#
yumdb=/var/lib/yum/yumdb

# If we should read from the yumdb. Note this is unsupported
# and the yum developers are keen for us not to do this in case the
# specification of yumdb changes.
yumdb_allow_read=false

# If we should write to the yumdb ourselves. Note this is unsupported
# and the yum developers are keen for us not to do this in case the
# specification of yumdb changes.
yumdb_allow_write=false

# The default package comparison algorithm
#
# 'version'	Compare by version,release,distro
# 'distro'	Compare by distro,version,release
#
# Using 'distro' allows the upgrade process to take into account the
# version of the distro-tag which allows upgrades to happen correctly
# even when the old distro-version contains a newer package than the
# new distro-version. e.g.
#
# With 'version':
# hal-0.0.2-1.fc14 is newer than hal-0.0.1-1.fc15
#
# With 'distro':
# hal-0.0.1-1.fc15 is newer than hal-0.0.2-1.fc14
#
pkg_compare_mode=version

# The history database where legacy transactions are stored
#
# Using the history database when resolving packages will allow the
# user to see which repository the installed package was installed from,
# but it will slow down loading the rpmdb for the first time.
#
use_installed_history=true

# The history database where legacy transactions are stored
#
# Using the yumdb is not recommended by the yum developers, and so
# we store zif-specific history data in a sqlite database.
#
# The filename given here will be the location of the database.
#
history_db=/var/lib/zif/history.db

# One package on the filesystem must provide the releasever
#
# On Fedora, fedora-release provides "redhat-release" so we then
# take the version of fedora-release to use as the releasever.
#
releasever_pkg=redhat-release

# When installing -debuginfo packages on the command line, we can
# automatically enable some disabled -debuginfo repos.
#
# We also set skip_if_unavailable when we do this.
#
auto_enable_debuginfo=true

# When we run the transaction, we have the remit to do a lot of damage.
#
# If this is set to true, then it does some basic sanity checks to make
# sure we're not going to cause damage to the system.
#
# For instance, selinux < 3.10.0-33 does not tag the zif executable to
# be able to run rpm scripts, which means we can install the kernel,
# but don't install the initrd.
#
runtime_version_checks=true

# Kick servers that send us files below this speed
#
# Using this value ensures we don't wait forever for servers that send
# us a file at 1kb/s.
#
# This value is measured in bytes / second, and if set to zero the
# feature is disabled.
#
slow_server_speed=10240

# Automatically remove packages if they were installed as deps
#
# If we install "evince-djvu" we also have to install "djvulibre-libs"
# to satisfy dependencies. If we then manually remove "evince-djvu"
# should we can also automatically remove "djvulibre-libs" if nothing
# else depends on it.
#
clean_requirements_on_remove=false

# Prefixes we should disregard when adding file provides
#
# When we search for conflicting files we check all files in all
# packages which takes a very long time when a lot of packages are
# installed.
#
# If we are certain these paths are not being used as file deps (e.g.
# using zif-file-requires) then we can ignore them, which speeds up
# depsolving by a huge amount.
#
# Don't add more entries here than needed, as the very act of searching
# for the prefix isn't computationally free.
ignore_file_dep_prefixes=/usr/share/gnome/help/,/usr/share/gtk-doc/,/usr/share/help/,/usr/share/icons/,/usr/share/locale/,/usr/share/man/,/usr/src/debug/,/usr/src/kernels/,/var/cache/

# The schema version of this file
#
# If the user modifies this file, then the package manager may not merge
# the old file and the new file. When this happens, we can get a .rpmnew
# file and zif will not get the new keys it expects.
#
# Only bump this number if you add keys to this file that zif cannot
# live without.
#
config_schema_version=1
