LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (http://www.linuxquestions.org/questions/red-hat-31/)
-   -   How to update RedHat from CentOS repos (http://www.linuxquestions.org/questions/red-hat-31/how-to-update-redhat-from-centos-repos-696783/)

watcher69b 01-12-2009 01:18 PM

How to update RedHat from CentOS repos
 
on your favorite RH server...
su
touch /etc/yum.repos.d/centos.repo

vi centos.repo

############################################################
## ##
## RedHat EL5 using CentOS 5 repos. ##
## i386 ##
############################################################
[base]
name=Red Hat Linux - Base
#mirrorlist=http://mirror.centos.org/centos-5/5/os/i386/repodata/
baseurl=http://mirror.centos.org/centos-5/5.3/os/i386/
enabled = 1
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#priority=1

#released updates
[updates]
name=Red Hat Linux - Updates
#mirrorlist=http://mirror.centos.org/centos-5/5.3/updates/i386/repodata/
baseurl=http://mirror.centos.org/centos-5/5.3/updates/i386/
enabled = 1
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#priority=1

#released addons
[addons]
name=Red Hat Linux - addons
#mirrorlist=http://mirror.centos.org/centos-5/5.3/addons/i386/repodata/
baseurl=http://mirror.centos.org/centos-5/5.3/addons/i386/
enabled = 0
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#priority=1

#released Sources
[SRPMS]
name=Red Hat Linux - SRPMS
#mirrorlist=
baseurl=ttp://mirror.centos.org/centos-5/5.3/os/SRPMS/
enabled = 1
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#priority=1
################## EOF ################################
wq

mkdir /var/cache/yum/centos

download the public key from
http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

rpm --import RPM-GPG-KEY-CentOS-5


now test with a 'yum update'

Good luck!

----- Having Trouble ??? -------
if you get
Error: yum conflicts with yum-rhn-plugin < 0.5.2-1.el5

then do rpm -e yum-rhn-plugin <enter>

spicy555 01-23-2009 01:56 PM

Tried But Failed
 
Hi,
I've followed all the steps you have mentioned but when it came to updating;
1. it downloaded the headers for applications like following;
"
openldap-devel-2.3.27-8.e 100% |=========================| 60 kB 00:00
---> Package openldap-devel.i386 0:2.3.27-8.el5_2.4 set to be updated
---> Downloading header for tzdata to pack into transaction set.
tzdata-2008i-1.el5.noarch 100% |=========================| 188 kB 00:01
---> Package tzdata.noarch 0:2008i-1.el5 set to be updated
---> Downloading header for avahi-tools to pack into transaction set.
avahi-tools-0.6.16-1.el5_ 100% |=========================| 13 kB 00:00
---> Package avahi-tools.i386 0:0.6.16-1.el5_2.1 set to be updated
---> Downloading header for firefox to pack into transaction set.
firefox-3.0.5-1.el5.cento 100% |=========================| 73 kB 00:01
---> Package firefox.i386 0:3.0.5-1.el5.centos set to be updated
---> Downloading header for openssl-devel to pack into transaction set.
openssl-devel-0.9.8b-10.e 100% |=========================| 142 kB 00:00

..............
............

"
but then it generated the following error and stoped
"
--> Running transaction check
--> Processing Conflict: yum conflicts yum-rhn-plugin < 0.5.2-1.el5
--> Processing Dependency: device-mapper-event for package: lvm2
--> Processing Dependency: libxpcom.so for package: firefox
--> Processing Dependency: gecko-libs >= 1.9 for package: devhelp
--> Processing Dependency: yum-metadata-parser >= 1.1.0 for package: yum
--> Processing Dependency: yum-fastestmirror for package: yum
--> Processing Dependency: libsmi for package: wireshark-gnome
--> Processing Conflict: nss conflicts prelink <= 0.3.9-2
--> Processing Dependency: libxpcom.so for package: yelp
--> Processing Dependency: xulrunner >= 1.9.0.5-1 for package: firefox
--> Processing Dependency: device-mapper >= 1.02.24-1 for package: lvm2
--> Processing Dependency: libsoup-devel for package: evolution-data-server-deve
l
.................
..................
..................continue

"

Any help would be much apperciated

sleddog 01-23-2009 04:03 PM

Sorry, I don't understand. Why would you want to do this?

anomie 01-23-2009 04:16 PM

Ditto here. If you don't want to pay for a RHN subscription, just run CentOS.

spicy555 01-23-2009 04:16 PM

because Red Hat Enterprise 5 needs serial key and registration to update and upgrade.

pentode 01-23-2009 05:09 PM

Yeah, we know. So just dump RHEL and install Centos or something else that won't cost you anything. If you're paying for support, what's the point in having RHEL?

spicy555 01-24-2009 02:46 AM

it's just that i've been using Red Hat since 1999, and just wana stick around. if anyone could help me with updating RHEL5.

watcher69b 01-24-2009 06:51 AM

Quote:

Conflict: nss conflicts prelink <= 0.3.9-2
Looks like their is a solution to this problem on the www centos org
website.

spicy555 01-25-2009 01:27 PM

Upgrade to RHEL 5.3
 
Tried but no luck and finally got hold on RHEL 5.3. i wish i could solve that. anyway thanks for all your replies.

routers 02-10-2009 11:19 AM

Quote:

it's just that i've been using Red Hat since 1999, and just wana stick around. if anyone could help me with updating RHEL5.
FYI CentOS is the same as Red Hat, the only thing is the name and logo remove
that is what i know

watcher69b 03-30-2009 06:30 AM

Quote:

... If you're paying for support, what's the point in having RHEL?

well dua, but for those of us who once had the money to pay for support and no longer do.

Or it was installed on a server and you dont want to rebuild the server just b/c your support has expired...


All times are GMT -5. The time now is 11:10 AM.