mirror of
https://pagure.io/fedora-docs/quick-docs.git
synced 2024-11-24 13:32:42 +00:00
Update modules/ROOT/pages/adding-or-removing-software-repositories-in-fedora.adoc
draft proposal for #775
This commit is contained in:
parent
837a0701d2
commit
863e037a16
1 changed files with 6 additions and 5 deletions
|
@ -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
|
||||||
----
|
----
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue