quick-docs/modules/ROOT/pages/_partials/proc_adding-repositories.adoc

22 lines
888 B
Text
Raw Normal View History

[id='adding-repositories']
= Adding repositories
This section describes how to add software repositories with the `dnf config-manger` command.
Use the following commands as the `root` user or under the `sudo` utility.
. 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:{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"]
----
2018-09-25 02:53:22 +00:00
# dnf config-manager --add-repo _repository_
----
+
2018-01-21 13:48:48 +00:00
Replace `_repository_` with the path to the created `.repo` file, for example:
+
----
2018-01-21 13:48:48 +00:00
# dnf config-manager --add-repo /etc/yum.repos.d/fedora_extras.repo
----