-
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: 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.