From 1f1eb3db9a6d7b976535224923247017ee5cf5ae Mon Sep 17 00:00:00 2001 From: Anthony McGlone Date: Fri, 25 Nov 2022 16:12:20 +0000 Subject: [PATCH] #477 Adding or removing software repositories --- .../_partials/proc_removing-repositories.adoc | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/modules/ROOT/pages/_partials/proc_removing-repositories.adoc b/modules/ROOT/pages/_partials/proc_removing-repositories.adoc index 53435a5..d4a2d2d 100644 --- a/modules/ROOT/pages/_partials/proc_removing-repositories.adoc +++ b/modules/ROOT/pages/_partials/proc_removing-repositories.adoc @@ -1,14 +1,21 @@ [id='removing-repositories'] = Removing repositories -This section shows how to remove a `.repo` file from the Yum repository. +This section shows how to remove a Yum repository (or `.repo` file). -* To remove a `.repo` file, run the following command as `*root*`. +[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/*_repository_*.repo +rm /etc/yum.repos.d/*_file_name_*.repo ---- + -Where *_repository_* is the unique repository ID. +Where *_file_name_* is the name of the `.repo` file. + \ No newline at end of file