How to Delete Repos on CentOS
Note that you will require root access in order to use these directions.
At times you may need to remove packages you have installed due to them not being needed anymore or they could be causing a conflict with another program. It is fairly simple to remove repositories from your Dedicated Server. 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 this 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 to clear any cached data regarding the installed packages as this can take up a lot of disk space.yum clean all