-
Notifications
You must be signed in to change notification settings - Fork 49
Repository Configuration
The repository config file resides in /etc/yum.repos.d
unless otherwise configured. A typical repo file looks like this:
[photon-release]
name=VMware Photon Linux $releasever ($basearch)
baseurl=https://packages.vmware.com/photon/$releasever/photon_release_$releasever_$basearch
gpgkey=file:///etc/pki/rpm-gpg/VMWARE-RPM-GPG-KEY
gpgcheck=1
enabled=1
skip_if_unavailable=True
There can be multiple repositories configured in one repo config file, each one in its own section with their id (photon-release
in the example above).
Type: string
Default: none
The base url for the repository. This points to the location where the repodata
reside. Allowed protocols are http:
, https:
, ftp:
, ftps:
and file:
.
The URL can contain the variables $releasever
and $basearch
, which refer to the current release of the distribution (for example 4.0
), and the architecture (for example x86_64
or aarch64
).
Type: boolean
Default: false
Whether the repo is enabled. This can be overridden with the --disablerepo
, --enablerepo
, --repoid
options on the command line.
Type: boolean
Default: true
Whether to check packages for their gpg signature. If enabled, gpgkey
needs to be set.
Type: list
Default: none
A list of URLs to the gpg keys. These will be downloaded if they are not on the system already. For URLs, allowed protocols are http:
, https:
, ftp:
, ftps:
and file:
.
Type: string
Default: none
The URL of a metalink for the repository.
Type: integer
Default: 172800 (2 days)
The maximum age for the downloaded metadata in seconds. If older, metadata will be refreshed on the next action that requires them.
Type: integer
Default: 0
Type: string
Default: none
A user friendly name for the repository.
Type: string
Default: none
The password for the repo, if required.
Type: integer
Default: 50
The priority for the repository. Repositories will be ordered using this number, and those with a lower number will be preferred.
Type: integer
Default: 10
How many times tdnf will retry a download on failure.
Type: boolean
Default: false
If the repository is not reachable and this is set tdnf will skip it.
Type: boolean
Default: false
Skip downloading metadata parts. This will affect download and processing times when the cache is refreshed, especially for repositories with lots of packages. However, there are some drawbacks:
-
skip_md_filelists=1
will disable downloading file data, that is complete lists of files in all packages. This will affectrepoquery
queries for files. -
skip_md_other=1
will disable download of misc data, mainly changelog data of packages. This will affectrepoquery
queries for changelogs. -
skip_md_updateinfo=1
will disable downloading update info data, affecting the output of theupdateinfo
command.
Type: string
Default: none
Type: string
Default: none
Type: string
Default: none
Type: boolean
Default: true
Whether to perform SSL verification.
Type: integer
Default: 0
Type: string
The username for the repo, if required.