Merge #398 #179 "Adding or removing repositories" needs verification

This commit is contained in:
Ankur Sinha 2021-11-17 09:01:00 +00:00
commit 55018bbb49
3 changed files with 11 additions and 17 deletions

View file

@ -5,7 +5,7 @@ include::{partialsdir}/attributes.adoc[]
This section describes how to add software repositories with the `dnf config-manager` command.
Use the following commands as the `root` user or under the `sudo` utility.
* 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
@ -13,10 +13,10 @@ Use the following commands as the `root` user or under the `sudo` utility.
+
[literal,subs="+quotes,attributes"]
----
dnf config-manager --add-repo _repository_
dnf config-manager --add-repo `*_repository_*`
----
+
Replace `_repository_` with the path to the created `.repo` file, for example:
Where *_repository_* is the path to the created `.repo` file, for example:
+
----
dnf config-manager --add-repo /etc/yum.repos.d/fedora_extras.repo

View file

@ -3,18 +3,15 @@
This section shows how to disable a particular software repository by using the `dnf config-manager` command.
[discrete]
= Procedure
* To disable a particular repository, use the following command as *root*:
* To disable a particular repository, run the following command as `*root*`.
+
[literal,subs="+quotes,attributes"]
----
# dnf config-manager --set-disabled _repository_
dnf config-manager --set-disabled *_repository_*
----
+
Replace `_repository_` with the unique repository ID, for example:
Where *_repository_* is the unique repository ID, for example:
+
----
# dnf config-manager --set-disabled fedora-extras
dnf config-manager --set-disabled fedora-extras
----

View file

@ -3,18 +3,15 @@
This section shows how to enable a particular software repository by using the `dnf config-manager` command.
[discrete]
= Procedure
* To enable a particular repository, use the following command as `root`.
* To enable a particular repository, run the following command as `*root*`.
+
[literal,subs="+quotes,attributes"]
----
# dnf config-manager --set-enabled _repository_
dnf config-manager --set-enabled *_repository_*
----
+
Replace `_repository_` with the unique repository ID, for example:
Where *_repository_* is the unique repository ID, for example:
+
----
# dnf config-manager --set-enabled fedora-extras
dnf config-manager --set-enabled fedora-extras
----