LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 01-19-2010, 10:43 AM   #1
Rocktron
LQ Newbie
 
Registered: Jan 2010
Posts: 16

Rep: Reputation: 1
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?
 
Old 01-19-2010, 11:59 AM   #2
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
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.
 
Old 01-19-2010, 12:33 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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'.
.....

Last edited by knudfl; 01-19-2010 at 12:59 PM.
 
Old 01-19-2010, 07:27 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Red Hat/Fedora Directory Server: How to enable posix account kenneho Linux - Server 3 11-21-2008 07:38 AM
How to enable ACPI in Red Hat 9 xcalibra Linux - General 1 10-05-2004 07:46 AM
Red Hat 9 + Intel CSA GbE controller: How to enable? C38368 Linux - Networking 4 06-01-2004 09:55 AM
Enable root to telnet into Red Hat 7.2 glock19 Linux - General 3 11-21-2001 07:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration