Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17763

Official / Correct Way To Remove Mirrors From Yum

$
0
0

Today I found a 3rd party mirror someone installed via RPM like so:

$ sudo rpm -ivh old_mirror.rpm 

In this following location:

[carlos@db1] $ pwd; ls -lh /etc/yum.repos.d total 44K -rw-r--r-- 1 root root 1.9K Oct 7 2013 CentOS-Base.repo -rw-r--r-- 1 root root 636 Oct 7 2013 CentOS-Debuginfo.repo -rw-r--r-- 1 root root 626 Oct 7 2013 CentOS-Media.repo -rw-r--r-- 1 root root 7.4K Oct 7 2013 CentOS-Vault.repo -rw-r--r-- 1 root root 262 Sep 7 2012 old_mirror.repo 

I need to install an updated version of the mirror I have staged:

$ sudo rpm -ivh ~/home/carlos/new_mirror.rpm 

Before I do above, I want to completely remove the 'old_mirror.rpm' from my system and would like to make sure all I need to do is:

rm /etc/yum.repos.d/old_mirror.repo; yum clean all 

Is the above correct process for removing 3rd party RPM mirrors in CentOS / RHEL based systems or is there more to it than above?

submitted by iamUNIX
[link][13 comments]

Viewing all articles
Browse latest Browse all 17763

Trending Articles