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

24 lines
910 B
Text
Raw Normal View History

[id='adding-repositories']
= Adding repositories
include::{partialsdir}/attributes.adoc[]
2020-11-16 15:36:59 +00:00
This section describes how to add software repositories with the `dnf config-manager` command.
2021-10-29 20:07:11 +00:00
* To add a new repository, do the following as `*root*`.
2019-03-28 21:13:22 +00:00
. 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"]
----
2021-10-29 20:42:32 +00:00
dnf config-manager --add-repo `*_repository_*`
----
+
2021-10-29 20:42:32 +00:00
Where *_repository_* is the path to the created `.repo` file, for example:
+
----
dnf config-manager --add-repo /etc/yum.repos.d/fedora_extras.repo
----