YUM also called as Yellowdog Updater, Modified is a default package management system which is mostly used in all versions of CentOS to install and update packages and repositories. With the help of “yum” a user can maintain their OS and applications updates very easily.

Here we will learn how to disable and remove package repositories on CentOS using yum.

Disable Package Repo

The package repo are located in /etc/yum.repos.d . In order to disable the file, you need to modify the proper file of the package repo and set the below given parameter.

enable = 0

Removing the Repository Completely

To remove the repository completely, just remove the package repo file from above mentioned directory.

To clean all the cached packages :

# yum clean packages

To purge the old package information:

# yum clean headers

To clean any cached xml metadata:

# yum clean metadata

To clean all the cached files from any enabled repository:

# yum clean all

%d bloggers like this: