mirror of
https://pagure.io/fedora-docs/quick-docs.git
synced 2024-11-24 13:32:42 +00:00
document both F41+ and F40-
This commit is contained in:
parent
91847941fa
commit
6c1324cfe3
1 changed files with 21 additions and 0 deletions
|
@ -15,6 +15,27 @@ This section describes how to add, enable, or disable a software repository with
|
|||
|
||||
This section describes how to add software repositories with the `dnf config-manager` command.
|
||||
|
||||
=== For Fedora 40 or earlier (DNF 4)
|
||||
|
||||
* 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 repository with `--add-repo`, where *_repository_* is the file path:
|
||||
+
|
||||
[literal,subs="+quotes,attributes"]
|
||||
----
|
||||
dnf config-manager --add-repo `*_repository_*`
|
||||
----
|
||||
+
|
||||
For example:
|
||||
+
|
||||
----
|
||||
dnf config-manager --add-repo /tmp/fedora_extras.repo
|
||||
----
|
||||
|
||||
=== For Fedora 41 or later (DNF 5)
|
||||
|
||||
* 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
|
||||
|
|
Loading…
Reference in a new issue