Compare commits

...

2 commits

Author SHA1 Message Date
Bruno Schaatsbergen
6c1324cfe3
document both F41+ and F40- 2024-11-19 00:43:14 +01:00
Bruno Schaatsbergen
91847941fa
revert 2delete page 2024-11-19 00:28:39 +01:00
2 changed files with 23 additions and 2 deletions

View file

@ -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. 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*`. * 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 . 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

View file

@ -13,11 +13,11 @@ This section describes how to add software repositories with the `dnf config-man
+ +
[literal,subs="+quotes,attributes"] [literal,subs="+quotes,attributes"]
---- ----
dnf config-manager addrepo --from-repofile=`*_repository_*` dnf config-manager --add-repo `*_repository_*`
---- ----
+ +
Where *_repository_* is the path to the created `.repo` file, for example: Where *_repository_* is the path to the created `.repo` file, for example:
+ +
---- ----
dnf config-manager addrepo --from-repofile=/etc/yum.repos.d/fedora_extras.repo dnf config-manager --add-repo /etc/yum.repos.d/fedora_extras.repo
---- ----