Quote:
I am using a amazon ec2 machine.
|
some clarification please
you are renting a amazon cloud server ?
or
you physically have a server ( one you can see and touch )
on RHEL 5.4 you do not install "yum"
it is installed already
you just do not have any repos installed to install software from
if amazon will let you install software to the os running on there server ( big if , you need to ask them )
two options
1)
then buy a rhel5 license
and talk to the sales rep and explain your situation
they can point you to a link where you can get the " RHN.repo " [ Red Hat Network . "software" (repo)sitory ] and anything else you need
or
2)
migrate the RHEL5.4 to CentOS 5.8
( should work going from 5.4 to 5.8 )
see the centOS migration guide
http://wiki.centos.org/HowTos/Migrat...=%28migrate%29
and use the code for the older unsupported version
as root !!!!
Code:
su -
----- type in your root password when asked ----
cp /etc/redhat-release /etc/redhat-release-saved
rpm -e --nodeps redhat-release-notes redhat-release yum-rhn-plugin redhat-logos
rpm -ivh http://vault.centos.org/5.0/os/i386/CentOS/centos-release-5-0.0.el5.centos.2.i386.rpm http://vault.centos.org/5.0/os/i386/CentOS/centos-release-notes-5.0.0-2.i386.rpm
now if the above works and you have CentOS 5 listed on the REBOOT ( if amazon allows you to reboot a remote machine )
-- again talk to Amazon cloud service you might not be able to do any of this , or you might ?
PS.
once you do this
rpm -e --nodeps redhat-release-notes redhat-release yum-rhn-plugin redhat-logos
there is NO going back
and if all the above works you still need to upgrade the unsupported centos 5.4 to centos 5.8
( that is easy so if you can get this far then we can walk you through that )