mirror of
https://pagure.io/fedora-docs/quick-docs.git
synced 2024-11-25 13:44:51 +00:00
23 lines
910 B
Text
23 lines
910 B
Text
[id='adding-repositories']
|
|
= Adding repositories
|
|
|
|
include::{partialsdir}/attributes.adoc[]
|
|
|
|
This section describes how to add software repositories with the `dnf config-manager` command.
|
|
|
|
* To add a new repository, do the following as `*root*`.
|
|
|
|
. Define a new repository by adding a new file with the `.repo` suffix to the [filename]`/etc/yum.repos.d/` directory. For details about various options to use in the `.repo` file, see the xref:f{MAJOROSVER}@fedora:system-administrators-guide:package-management/DNF.adoc#sec-Setting_repository_Options[Setting [repository\] Options] section in the System Administrator's Guide
|
|
|
|
. Add the newly created repository.
|
|
+
|
|
[literal,subs="+quotes,attributes"]
|
|
----
|
|
dnf config-manager --add-repo `*_repository_*`
|
|
----
|
|
+
|
|
Where *_repository_* is the path to the created `.repo` file, for example:
|
|
+
|
|
----
|
|
dnf config-manager --add-repo /etc/yum.repos.d/fedora_extras.repo
|
|
----
|