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.
- Log into your Dedicated Server with the>root user.
- Search the for the package name installed by executing the following rpm command:rpm -qf /etc/yum.repos.d/epel.repo
- Remove the packages and repos.yum remove epel-release
- 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.