LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-19-2008, 02:13 AM   #1
harry2006
Member
 
Registered: Aug 2006
Location: /hawaii/honolulu/downtown
Distribution: Fedora 10[Cambridge] and Ubuntu 9.04[Jaunty]
Posts: 201

Rep: Reputation: 30
howto install YUM and make it run properly in RHEL5?


hi all. i've using yum in fedora9 for quite a long time and i really like the ease of use it provides. no i've do some installations on rhel5 machines for which i tried to use yum and surprised that its no there. I think yum is not availabe by default in rhel5. I tried to google out and found that rhel has something called up2date kinda similar to yum. Anyways as I'm comfortable using yum , i don't want to switch to up2date. I tried installing yum using the following guide
http://www.pinoytux.com/linux/howto-...-yum-on-rhel-4
but after installation when i tried to rum "yum update" it gave me some erorr msgs
Code:
#yum update
Gathering header information file(s) from server(s)
Server: CentOS-4AS - Base
Error - /var/cache/yum/base/header.info cannot be found
Please ask your sysadmin to update the headers on this system.
I searched this forum and found one thread, this one
http://www.linuxquestions.org/questi...-rhel4-391000/
even this didn't help. can anyone tell me how to fix the problem?
thank you very much.
 
Old 09-19-2008, 03:46 AM   #2
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
yum is part of rhel5. and has replaced up2date to handle package
installation as interface to rpm.
no need to install from third party sources.
if you have forced installation another set of package for yum,
uninstall it and install the ones from your rhel5 installer.
 
Old 09-19-2008, 04:17 AM   #3
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
It would be simpler to just install CentOS to start with. Once you update with yum, everything will be badged CentOS in any case.

The easiest way to make the change is to have an install of CentOS, and simply copy the contents of /etc/yum.repos.d across to your RH server. Then you are done.

If you don't want to install CentOS somewhere, I'm happy to either post the contents of each repo here, or you can send me an email using the toiols to the left, and I'll send you current CentOS 5 repo files.
 
Old 09-19-2008, 04:32 AM   #4
harry2006
Member
 
Registered: Aug 2006
Location: /hawaii/honolulu/downtown
Distribution: Fedora 10[Cambridge] and Ubuntu 9.04[Jaunty]
Posts: 201

Original Poster
Rep: Reputation: 30
@born4linux and @billymayday ..thank you very much...
since i couldn't find any yum i tried to install it...m able to ssh to that machine from my local box in our local LAN. please check this snip from /etc/grub.conf to ensure that its really RHEL5.
Code:
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux AS (2.6.9-5.EL)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-5.EL ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.9-5.EL.img
when i tried to find yum using "which yum", i didn't find anything also "locate yum"[before runnign this command i updated the db using updatedb command] gave me the following results,
Code:
/etc/log.d/scripts/services/yum
/etc/log.d/conf/logfiles/yum.conf
/etc/log.d/conf/services/yum.conf
/usr/share/rhn/up2date_client/repoBackends/yumRepo.pyc
/usr/share/rhn/up2date_client/repoBackends/yumRepo.py
/usr/share/rhn/rhn_applet/rhn_applet_yum.py
/usr/share/rhn/rhn_applet/rhn_applet_yum.pyc
can anyone please tell me what is the issue here???
thanks a lot.
 
Old 09-22-2008, 02:10 AM   #5
harry2006
Member
 
Registered: Aug 2006
Location: /hawaii/honolulu/downtown
Distribution: Fedora 10[Cambridge] and Ubuntu 9.04[Jaunty]
Posts: 201

Original Poster
Rep: Reputation: 30
can anyone please tell me what is the issue or atleast tell me what else i need to check or may be some alternatives ...thank you.
 
Old 09-22-2008, 02:15 AM   #6
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
It doesn't look like you have yum installed.

I use CentOS, not RH, so I can't comment on born4linux's assertion.
 
Old 09-25-2008, 12:28 AM   #7
harry2006
Member
 
Registered: Aug 2006
Location: /hawaii/honolulu/downtown
Distribution: Fedora 10[Cambridge] and Ubuntu 9.04[Jaunty]
Posts: 201

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by billymayday View Post
It doesn't look like you have yum installed.

I use CentOS, not RH, so I can't comment on born4linux's assertion.
thanks, any other useful response from any one??? thank you.
 
Old 09-25-2008, 01:12 AM   #8
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Have you tried installing yum from the dvd? It must be there, because I've installed the RHEL5 evaluation version that I then added the CentOS repos to (just for the exercise), and that has yum installed.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
RHEL5.2 - Can't register naviagent with EMC SAN properly bhoros Linux - Enterprise 4 04-19-2012 12:53 PM
yum and RHEL5.1 spankbot Red Hat 4 03-30-2008 02:42 PM
Howto install and run PCSX for linux? kazuya1977 Linux - Games 1 06-01-2007 03:08 AM
Howto properly install dictionary for ispell/kde? intens Slackware 1 05-21-2007 04:34 PM
Howto deinstall tar.gz after an make install cyberbull Linux - Newbie 3 02-03-2004 11:46 AM


All times are GMT -5. The time now is 08:50 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration