LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Ho to remove epel-release-6-8.noarch (https://www.linuxquestions.org/questions/linux-newbie-8/ho-to-remove-epel-release-6-8-noarch-4175488795/)

Arun Kurian 12-21-2013 01:52 PM

Ho to remove epel-release-6-8.noarch
 
How do I remove epel-release-6-8.noarch from the Cent OS? I just wanted to remove the epel to execute a script. Currently when I execute the script it is saying that package epel-release-6-8.noarch is already installed,so I guess if we remove it.

colucix 12-21-2013 01:59 PM

Code:

yum remove epel-release
Maybe the correct way is to check if it's already installed in the script itself and eventually skip the installation step:
Code:

if ! rpm -q --quiet epel-release
then
  <install epel-release>
else
  <do nothing>
fi


John VV 12-21-2013 02:04 PM

you can disable the epel repo with the --disablerepo=epel

what did you install from epel ?
if you uninstall the repo without first uninstalling the rpm's you installed from epel you will have problems !

also is "yum-priorities-plugin" installed ?
it REALLY is NEEDED if you install third party software repos

see the centos wiki page
http://wiki.centos.org/AdditionalResources/Repositories
and the page for the plugin
http://wiki.centos.org/PackageManagement/Yum/Priorities


also please post this ?unknown? "script" you are trying to run

btmiller 12-21-2013 05:40 PM

If you know that epel is already installed, why don't you disable the test in the script that checks for it? Or will the script not work c orrectly if epel-release is installed? I can't imagine why this would be, though.


All times are GMT -5. The time now is 05:05 PM.