Update modules/ROOT/pages/adding-or-removing-software-repositories-in-fedora.adoc

draft proposal for  #775
This commit is contained in:
Matias Pecchia 2024-10-29 21:25:44 +00:00
parent 837a0701d2
commit 863e037a16

View file

@ -29,7 +29,7 @@ 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 --add-repo /etc/yum.repos.d/fedora_extras.repo dnf config-manager addrepo --from-repofile=/tmp/fedora_extras.repo
---- ----
@ -43,13 +43,13 @@ This section shows how to enable a particular software repository by using the `
+ +
[literal,subs="+quotes,attributes"] [literal,subs="+quotes,attributes"]
---- ----
dnf config-manager --set-enabled *_repository_* dnf config-manager setopt *_repository_*.enabled=1
---- ----
+ +
Where *_repository_* is 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 setopt fedora-extras.enabled=1
---- ----
@ -62,13 +62,14 @@ This section shows how to disable a particular software repository by using the
+ +
[literal,subs="+quotes,attributes"] [literal,subs="+quotes,attributes"]
---- ----
dnf config-manager --set-disabled *_repository_* dnf config-manager setopt *_repository_*.enabled=0
---- ----
+ +
Where *_repository_* is 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 setopt fedora-extras.enabled=0
---- ----