mirror of
https://pagure.io/fedora-docs/quick-docs.git
synced 2024-11-28 14:56:35 +00:00
21 lines
No EOL
617 B
Text
21 lines
No EOL
617 B
Text
[id='removing-repositories']
|
|
= Removing repositories
|
|
|
|
This section shows how to remove a Yum repository (or `.repo` file).
|
|
|
|
[NOTE]
|
|
====
|
|
If you know the ID of a repository, but you're not sure what `.repo` it belongs to,
|
|
you can run the following command [red]#`pass:[grep -E "^\[.*\]" /etc/yum.repos.d/*]`#.
|
|
This will print a list of the repository IDs that are associated with each Yum repository.
|
|
====
|
|
|
|
* To remove a Yum repository, run the following command as `*root*`.
|
|
+
|
|
[literal,subs="+quotes,attributes"]
|
|
----
|
|
rm /etc/yum.repos.d/*_file_name_*.repo
|
|
----
|
|
+
|
|
Where *_file_name_* is the name of the `.repo` file.
|
|
+ |