2017-12-18 16:23:48 +00:00
|
|
|
[id='disabling-repositories']
|
|
|
|
= Disabling repositories
|
|
|
|
|
|
|
|
This section shows how to disable a particular software repository by using the `dnf config-manager` command.
|
|
|
|
|
2021-10-29 20:42:32 +00:00
|
|
|
* To disable a particular repository, run the following command as `*root*`.
|
2017-12-18 16:23:48 +00:00
|
|
|
+
|
|
|
|
[literal,subs="+quotes,attributes"]
|
|
|
|
----
|
2021-10-29 20:42:32 +00:00
|
|
|
dnf config-manager --set-disabled *_repository_*
|
2017-12-18 16:23:48 +00:00
|
|
|
----
|
|
|
|
+
|
2021-10-29 20:42:32 +00:00
|
|
|
Where *_repository_* is the unique repository ID, for example:
|
2017-12-18 16:23:48 +00:00
|
|
|
+
|
|
|
|
----
|
2021-10-29 19:55:07 +00:00
|
|
|
dnf config-manager --set-disabled fedora-extras
|
2017-12-18 16:23:48 +00:00
|
|
|
----
|