Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-19-2011, 09:47 AM
|
#1
|
Member
Registered: Apr 2005
Posts: 252
Rep:
|
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?
|
|
|
03-19-2011, 10:46 AM
|
#2
|
Member
Registered: Mar 2011
Location: Bellmawr, NJ
Distribution: Red Hat / Fedora
Posts: 215
Rep:
|
Quote:
Originally Posted by kitek
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/ ?
|
|
|
03-20-2011, 03:01 AM
|
#3
|
Member
Registered: Apr 2005
Posts: 252
Original Poster
Rep:
|
Quote:
Originally Posted by savona
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
|
|
|
03-20-2011, 09:11 AM
|
#4
|
Member
Registered: Apr 2005
Posts: 252
Original Poster
Rep:
|
Update. It did complete a lot of updates but, it is still still sitting at CentOS 4.0.
|
|
|
03-20-2011, 11:46 AM
|
#5
|
Member
Registered: Mar 2011
Location: Bellmawr, NJ
Distribution: Red Hat / Fedora
Posts: 215
Rep:
|
Quote:
Originally Posted by kitek
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.
|
|
|
03-20-2011, 12:07 PM
|
#6
|
Member
Registered: Apr 2005
Posts: 252
Original Poster
Rep:
|
Quote:
Originally Posted by savona
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
|
|
|
03-20-2011, 08:34 PM
|
#7
|
Member
Registered: Apr 2005
Posts: 252
Original Poster
Rep:
|
Quote:
Originally Posted by kitek
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/
|
|
|
03-20-2011, 10:16 PM
|
#8
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,639
|
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
|
|
|
03-21-2011, 06:33 AM
|
#9
|
Member
Registered: Apr 2005
Posts: 252
Original Poster
Rep:
|
Quote:
Originally Posted by John VV
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
|
|
|
03-21-2011, 02:35 PM
|
#10
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,639
|
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.
|
|
|
03-21-2011, 03:15 PM
|
#11
|
Member
Registered: Apr 2005
Posts: 252
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 08:30 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|