How to Delete Repos on CentOS

Note that you will require root access in order to use these directions.

If you no longer need packages you installed or if there are ones causing a conflict with another program, you may need to remove them. It’s fairly simple to remove repositories from your Dedicated Server and for the purpose of this tutorial we will be removing the EPEL repository that we initially installed.

    1. Log into your Dedicated Server with the>root user.
    2. Search the for the package name installed by executing the following rpm command:
      rpm -qf /etc/yum.repos.d/epel.repo
      epel-release-6-8.noarch
    3. Remove the packages and repos.
      yum remove epel-release
    4. Generally it is a good practice to run the following command to clear any cached data regarding the installed packages as this can take up a lot of disk space.
      yum clean all

Congratulations! Now you know how to delete unneeded repos on your dedicated server!

Did you find this tutorial helpful? You’re in luck! InMotion Hosting’s world-class support is availabe 24/7 to assist you with all of your web hosting needs.

Leave a Reply