How to remove repo in Centos

This article explains the steps to remove repo in Centos server.

Step1: Login to the server as root

Step2: Search the for the package name installed by executing this rpm command.

For example, if we are going to remove epel repository.

#rpm -qf /etc/yum.repos.d/epel.repo
epel-release-6-8.noarch

Step3: Remove that package

#yum remove epel-release

Step4: Clear the metadata

#yum clean all

 

By this we can remove repository installed in Centos server.

Leave a Reply

Your email address will not be published. Required fields are marked *