LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-19-2011, 09:47 AM   #1
kitek
Member
 
Registered: Apr 2005
Posts: 252

Rep: Reputation: 15
Trouble Updating CentOS 4 via yum


I had to use an older version of CentOS to get the system to boot properly. Now that its up and running on a minimal install, I want to take it up the rank to 4.x final then to 5.0. Some reason the DVD drive doesn't detect that it's bootable so I want to do it via yum. when I begin with 'yum update' this is what I get.

[root@ns2 ~]# yum update
Setting up Update Process
Setting up Repos
webmin 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
webmin : ################################################## 64/64
No Packages marked for Update/Obsoletion
[root@ns2 ~]#

I figure the RPM-PGP-KEY must be outdated but, I have tried updating it. I have two servers I did this way and this is what they do. Anyone else experiencing this in the past?
 
Old 03-19-2011, 10:46 AM   #2
savona
Member
 
Registered: Mar 2011
Location: Bellmawr, NJ
Distribution: Red Hat / Fedora
Posts: 215

Rep: Reputation: 66
Quote:
Originally Posted by kitek View Post
I had to use an older version of CentOS to get the system to boot properly. Now that its up and running on a minimal install, I want to take it up the rank to 4.x final then to 5.0. Some reason the DVD drive doesn't detect that it's bootable so I want to do it via yum. when I begin with 'yum update' this is what I get.

[root@ns2 ~]# yum update
Setting up Update Process
Setting up Repos
webmin 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
webmin : ################################################## 64/64
No Packages marked for Update/Obsoletion
[root@ns2 ~]#

I figure the RPM-PGP-KEY must be outdated but, I have tried updating it. I have two servers I did this way and this is what they do. Anyone else experiencing this in the past?

What do you have in /etc/yum.repos.d/ ?
 
Old 03-20-2011, 03:01 AM   #3
kitek
Member
 
Registered: Apr 2005
Posts: 252

Original Poster
Rep: Reputation: 15
Lightbulb

Quote:
Originally Posted by savona View Post
What do you have in /etc/yum.repos.d/ ?
Here is what's in there now. And it did do the update. However at the time of asking about this problem, it had a different one in there. Now that I have added this one below, it started doing up dates. But it is come up with some errors. So I don't believe it is working. I had a Centos 4.4 running fine. I ran yum update and it updated fully to 4.9. So I uploaded that file to the 2 4.0 machines and ran yum clean all. I do not think they like it fully. I won't mark this as solved just yet. It downloaded a bunch of packages and I accepted it to begin updating and then finally a long time into the process, it never finished. So there must still be something wrong. I think there is still some problems here. But I do think we are on the right track.

Code:
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by the CentOS Team.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the 
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
priority=1
protect=1

#released updates 
[update]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
priority=1
protect=1

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
priority=1
protect=1

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
priority=1
protect=1

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
priority=2
protect=1

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
priority=2
protect=1
 
Old 03-20-2011, 09:11 AM   #4
kitek
Member
 
Registered: Apr 2005
Posts: 252

Original Poster
Rep: Reputation: 15
Update. It did complete a lot of updates but, it is still still sitting at CentOS 4.0.
 
Old 03-20-2011, 11:46 AM   #5
savona
Member
 
Registered: Mar 2011
Location: Bellmawr, NJ
Distribution: Red Hat / Fedora
Posts: 215

Rep: Reputation: 66
Quote:
Originally Posted by kitek View Post
Update. It did complete a lot of updates but, it is still still sitting at CentOS 4.0.
Centos does not upgrade to newer versions via yum automatically from version 4. You need to do a install of version 5 or higher in order to upgrade via yum in the way your expecting.

Sorry.
 
Old 03-20-2011, 12:07 PM   #6
kitek
Member
 
Registered: Apr 2005
Posts: 252

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by savona View Post
Centos does not upgrade to newer versions via yum automatically from version 4. You need to do a install of version 5 or higher in order to upgrade via yum in the way your expecting.

Sorry.
Hmmm.. Yesterday I used yum to update 4.4 to 4.9. I want to start with that. There is an article to update to 5 via ssh remotely I'll post that article. For now I got these two I need to get from 4.0 t0 4.9 first to be able to even try going to 5
 
Old 03-20-2011, 08:34 PM   #7
kitek
Member
 
Registered: Apr 2005
Posts: 252

Original Poster
Rep: Reputation: 15
Lightbulb

Quote:
Originally Posted by kitek View Post
Hmmm.. Yesterday I used yum to update 4.4 to 4.9. I want to start with that. There is an article to update to 5 via ssh remotely I'll post that article. For now I got these two I need to get from 4.0 t0 4.9 first to be able to even try going to 5
http://planet.admon.org/update-cento...os-5-remotely/
 
Old 03-20-2011, 10:16 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,639

Rep: Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653
Quote:
I want to take it up the rank to 4.x final then to 5.0.
Cent has NEVER NEVER supported upgrading from one MAJOR version to the next
ONLY the Minor versions

you MUST install centOS 5.5 to "upgrade"
and to do that by way of a full clean install on a newly reformated disk

basicly all that work to upgrade the old 4 was wasted

you need to reformat and install centOS 5.5 from the dvd
100% clean install on a 100% clean system
 
Old 03-21-2011, 06:33 AM   #9
kitek
Member
 
Registered: Apr 2005
Posts: 252

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by John VV View Post
Cent has NEVER NEVER supported upgrading from one MAJOR version to the next
ONLY the Minor versions

you MUST install centOS 5.5 to "upgrade"
and to do that by way of a full clean install on a newly reformated disk

basicly all that work to upgrade the old 4 was wasted

you need to reformat and install centOS 5.5 from the dvd
100% clean install on a 100% clean system
As the post above shows an article on how to upgrade Centos 4.9 to Centos 5. I will have to totally disagree with you. I did it yesterday afternoon. The box upgraded from 4.9 Final to 5.5 WITHOUT reformatting and installing from a fresh install as you say. Therefore for all my basic work to upgrade the "old" 4, was in fact not wasted. Never say never. They might not support it, but it doesn't mean it can't be done. Xbox doesn't support certain other stuff. But it will if you mod it. MicroSoft doesn't support that do they? (Just an example)

Now, Let's focus back again on how and why these two 4.0 box will not upgrade to 4.9 Final like the 3rd one did as I stated before. Is there something wrong with the CentOS-Base.repo file or is it something else.

Last edited by kitek; 03-21-2011 at 06:38 AM. Reason: Never Say Never
 
Old 03-21-2011, 02:35 PM   #10
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,639

Rep: Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653
red hat and cent HAVE NEVER supported it
doing that on rhel4.9 to rhel5 will null and void ALL support contracts

I would spend my time( if i were you) in finding out WHY the CentOS 5.5 dvd will not install
and you you had to use a very old cent4.0

going from 4.0 to 4.9 ( and getting everything to work)
then trying the NEVER supported update to 5.5

a dvd upgrade maybe but rhel4 and rhel 5.5 are SO very different that it should not work .

Last edited by John VV; 03-21-2011 at 03:17 PM.
 
Old 03-21-2011, 03:15 PM   #11
kitek
Member
 
Registered: Apr 2005
Posts: 252

Original Poster
Rep: Reputation: 15
CentOS 4.0 to 4.9 not updating. It does regular updates but not the OS from 4.0 to 4.x

Last edited by kitek; 03-21-2011 at 03:18 PM.
 
  


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
how to update rhel 5 using centos yum updater without conflict with yum redhat plugin udayvikram Linux - Software 2 03-30-2010 08:15 AM
yum update trouble - Fresh install of Centos 5.4 aries44475 Linux - Newbie 12 03-05-2010 09:51 AM
Broken Yum while updating centos from 4.6 to 5.2 hoodedmanwithsythe Linux - Software 2 09-20-2008 02:59 AM
CentOS' YUM repository not updating? guest cAos 3 03-19-2005 03:57 AM
after updating RHEL AS 4 w/ CentOS' YUM repository.... guest cAos 2 03-17-2005 10:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:30 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration