LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   How to enable epel in Red Hat (https://www.linuxquestions.org/questions/red-hat-31/how-to-enable-epel-in-red-hat-783251/)

Rocktron 01-19-2010 10:43 AM

How to enable epel in Red Hat
 
Hi, i'm trying to install php on my RHEL 5.1 from the "Remi repository" but there are some missed dependencies that i need to install it, i read that they are in the epel repositories so i tried to enable it, the instructions i read to do it says that i have to do this:

rpm -Uvh http://download.fedora.redhat.com/pu...5-3.noarch.rpm

So i do it, then i try to make sure i have epel enabled corectly, by typing :

yum repolist

but this is what i get:

Quote:

Loading "installonlyn" plugin
Loading "security" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.

usage: yum [options] < grouplist, localinstall, groupinfo, localupdate, resolvedep, erase, deplist, groupremove, makecache, upgrade, list-security, provides, shell, install, whatprovides, groupinstall, update, groupupdate, info, search, check-update, list-sec, list, remove, info-sec, clean, info-security, grouperase >

options:
-h, --help show this help message and exit
-t, --tolerant be tolerant of errors
-C run entirely from cache, don't update cache
-c [config file] config file location
-R [minutes] maximum command wait time
-d [debug level] debugging output level
-e [error level] error output level
-y answer yes for all questions
--version show Yum version and exit
--installroot=[path] set install root
--enablerepo=[repo] enable one or more repositories (wildcards allowed)
--disablerepo=[repo] disable one or more repositories (wildcards allowed)
-x [package], --exclude=[package]
exclude package(s) by name or glob
--obsoletes enable obsoletes processing during updates
--noplugins disable Yum plugins
--security Include security relevant packages
--cve=CVE Include packages needed to fix the given CVE
--bz=BZ Include packages needed to fix the given BZ
--advisory=ADVISORY Include packages needed to fix the given advisory
żany idea of what do i have to do?

DrLove73 01-19-2010 11:59 AM

You do not have "repolist" command in your yum, it's to old. if you are not paying RHEL subscription, then you should convert your system to CentOS, it's made of RHEL source packages, it's like RHEL just free and without paid support.

knudfl 01-19-2010 12:33 PM

http://download.fedora.redhat.com/pu...5-3.noarch.rpm
> epel-release-5-3.noarch.rpm

> > # rpm -Uvh epel-release-5-3.noarch.rpm

Getting a ""repo list"" : ls /etc/yum.repos.d/

And a list with all packages, you can install :
# yum list available > available-packages.txt .

More info : 'man yum'.
.....

chrism01 01-19-2010 07:27 PM

Useful yum cmds http://kbase.redhat.com/faq/docs/DOC-2531.
BTW, as your system is not registered with RH, you should either do so or switch to Centos, in order to keep your system updated.


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