LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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-12-2009, 01:18 PM   #1
watcher69b
Member
 
Registered: Nov 2007
Location: /home/watcher69b
Distribution: RH, Fedora & CentOS
Posts: 539

Rep: Reputation: 39
Lightbulb 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>

Last edited by watcher69b; 08-25-2009 at 06:41 AM.
 
Old 01-23-2009, 01:56 PM   #2
spicy555
LQ Newbie
 
Registered: Jan 2009
Location: UK
Distribution: Red Hat Enterprise 5
Posts: 4

Rep: Reputation: 0
Angry 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

Last edited by spicy555; 01-24-2009 at 02:50 AM.
 
Old 01-23-2009, 04:03 PM   #3
sleddog
Member
 
Registered: Jan 2002
Location: Labrador, Canada
Distribution: CentOS, Debian
Posts: 182

Rep: Reputation: 35
Sorry, I don't understand. Why would you want to do this?
 
Old 01-23-2009, 04:16 PM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
Blog Entries: 5

Rep: Reputation: Disabled
Ditto here. If you don't want to pay for a RHN subscription, just run CentOS.
 
Old 01-23-2009, 04:16 PM   #5
spicy555
LQ Newbie
 
Registered: Jan 2009
Location: UK
Distribution: Red Hat Enterprise 5
Posts: 4

Rep: Reputation: 0
because Red Hat Enterprise 5 needs serial key and registration to update and upgrade.
 
Old 01-23-2009, 05:09 PM   #6
pentode
Member
 
Registered: Dec 2005
Location: Oregon
Distribution: Debian Testing
Posts: 488

Rep: Reputation: 38
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?
 
Old 01-24-2009, 02:46 AM   #7
spicy555
LQ Newbie
 
Registered: Jan 2009
Location: UK
Distribution: Red Hat Enterprise 5
Posts: 4

Rep: Reputation: 0
Question

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.
 
Old 01-24-2009, 06:51 AM   #8
watcher69b
Member
 
Registered: Nov 2007
Location: /home/watcher69b
Distribution: RH, Fedora & CentOS
Posts: 539

Original Poster
Rep: Reputation: 39
Quote:
Conflict: nss conflicts prelink <= 0.3.9-2
Looks like their is a solution to this problem on the www centos org
website.
 
Old 01-25-2009, 01:27 PM   #9
spicy555
LQ Newbie
 
Registered: Jan 2009
Location: UK
Distribution: Red Hat Enterprise 5
Posts: 4

Rep: Reputation: 0
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.
 
Old 02-10-2009, 11:19 AM   #10
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 771
Blog Entries: 6

Rep: Reputation: 75
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
 
Old 03-30-2009, 06:30 AM   #11
watcher69b
Member
 
Registered: Nov 2007
Location: /home/watcher69b
Distribution: RH, Fedora & CentOS
Posts: 539

Original Poster
Rep: Reputation: 39
Cool

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


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
using centos repos under rhel sycamorex Linux - Software 4 05-26-2008 11:35 AM
yast fails to update system, tells me to add repos (while they already are) wet Suse/Novell 2 01-25-2008 01:01 PM
tell Yum to not update repos every chuffing time?? acid_kewpie Fedora 3 12-20-2005 04:56 PM
apt-get update not updating repos. recently? truthe Debian 6 04-09-2005 05:42 PM
update centos 4 rc1 to centos 4 trou yum? maxut cAos 2 03-04-2005 02:36 AM


All times are GMT -5. The time now is 04:12 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