Skip to main content
added more command and warning message
Source Link
grepit
  • 213
  • 2
  • 6

All previous answers are correct but unfortunately did not work for me. The below command worked for me:

Warning this will delete all of you Centos repos !!! use this at your own risk

mkdir ~/backup
cp -r /etc/yum.repos.d/Cen* ~/backup
rm /etc/yum.repos.d/Cen*

All previous answers are correct but unfortunately did not work for me. The below command worked for me:

rm /etc/yum.repos.d/Cen*

All previous answers are correct but unfortunately did not work for me. The below command worked for me:

Warning this will delete all of you Centos repos !!! use this at your own risk

mkdir ~/backup
cp -r /etc/yum.repos.d/Cen* ~/backup
rm /etc/yum.repos.d/Cen*
Source Link
grepit
  • 213
  • 2
  • 6

All previous answers are correct but unfortunately did not work for me. The below command worked for me:

rm /etc/yum.repos.d/Cen*