quick-docs/modules/ROOT/pages/_partials/2delete-proc_removing-repositories.adoc.delete.adoc

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.
+