Skip to content

Configuration Options

Oliver Kurth edited this page Dec 17, 2021 · 13 revisions

Configuration Options

The config file resides in /etc/tdnf/tdnf.conf. A typical configuration looks like this:

[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=true
repodir=/etc/yum.repos.d
cachedir=/var/cache/tdnf

cachedir

Type: string

Default: /var/cache/tdnf

The location of the cache directory. This is the directory where metadata are stored, and RPMs will be temporarily stored when they are downloaded.

clean_requirements_on_remove

Type: boolean

Default: false

Currently not implemented!

Determines whether automatically installed dependencies will also be removed when a package is removed.

distroarchpkg

Type: string

Default: x86_64

The architecture of the distribution.

distroverpkg

Type: string

Default: system-release

excludepkgs

Type: list

Default: none

List of packages to be excluded from any operations. Packages in this list will not be installed, updated or downgraded.

gpgcheck

Type: boolean

Default: false

Determines whether packages will be checked for their gpg signature.

installonly_limit

Type: integer

Currently not implemented!

Number of concurrently install only packages.

keepcache

Type: boolean

Default: false

Whether to keep downloaded packages after installation.

minversions

Type: list

Default: none

List of packages with versions. Packages will never be downgraded below that version. Example: minversions=tdnf=3.1.5 foo=1.2.3. This can also be configured with files in the directory minversions.d in the same directory as the config file (so usually /etc/tdf/minversions.d), with the the extension .conf. Example:

mkdir -p /etc/tdf/minversions.d
echo tdnf=3.1.5 > /etc/tdf/minversions.d/tdnf.conf

noplugins

If set, plugins are disabled.

pluginpath

Type: string

Default: /usr/lib/tdnf-plugins (or modified on build time with SYSTEM_LIBDIR)

The path for plugins.

pluginconfpath

Type: string

Default: /etc/tdnf/pluginconf.d

Path for the plugin configurations.

proxy

Type: string

Default: none

Set this to a proxy, if any.

proxy_password

Type: string

Default: none

The proxy password, if any.

proxy_username

Type: string

Default: none

The proxy user name, if any.

repodir

Type: string

Default: /etc/yum.repos.d

The location where the .repo files reside.

Clone this wiki locally