LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   howto install YUM and make it run properly in RHEL5? (https://www.linuxquestions.org/questions/linux-software-2/howto-install-yum-and-make-it-run-properly-in-rhel5-670975/)

harry2006 09-19-2008 02:13 AM

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.

born4linux 09-19-2008 03:46 AM

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.

billymayday 09-19-2008 04:17 AM

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.

harry2006 09-19-2008 04:32 AM

@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.

harry2006 09-22-2008 02:10 AM

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.

billymayday 09-22-2008 02:15 AM

It doesn't look like you have yum installed.

I use CentOS, not RH, so I can't comment on born4linux's assertion.

harry2006 09-25-2008 12:28 AM

Quote:

Originally Posted by billymayday (Post 3287971)
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.

billymayday 09-25-2008 01:12 AM

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.


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