yum repos CentOS 6

The repositories configuration files are located at “/etc/yum.repos.d/” in CentOS 6+

Run yum repolist to check for enabled repositories which will give you a list repo IDs and repo names:

Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors
* base: mirror.stanford.edu
* centosplus: centos.chi.host-engine.com
* extras: mirrors.sonic.net
* updates: centos.mbni.med.umich.edu
virtualmin
virtualmin-universal                                                                        193/193
repo id                              repo name                                                status
base                                 CentOS-6 – Base                                          4,802
centosplus                           CentOS-6 – Plus                                             62
extras                               CentOS-6 – Extras                                           12
updates                              CentOS-6 – Updates                                         831
virtualmin                           Red Hat Enterprise 6 – i386 – Virtualmin                   101
virtualmin-universal                 Virtualmin Distribution Neutral                            193
repolist: 6,001

To permanently disable a repo, open ‘/etc/yum.repos.d/CentOS-Media.repo’ in a text editor like nano/gedit/emacs, go to the end of file and change ‘enabled=1’ to ‘enabled=0’

That’s it, you just disabled a repository on CentOS 6.5!

 

Published by

Blog Administrator

PC diagnosis/repair, web hosting, web design, and software development