View Full Version : how can i upgrade centos 4.3 to 4.5??
hugedragon
08-16-2007, 05:16 AM
i currently using centos 4.3 with DA.. can i use yum to do it?? thanks
smtalk
08-16-2007, 05:29 AM
Sure you can :) It's a safe way to update OS from 4.x to 4.x.
hugedragon
08-16-2007, 06:46 AM
but i use 'yum upgrade'.. i get "No Packages marked for Update/Obsoletion"..
did I miss something? :confused:
smtalk
08-16-2007, 07:03 AM
It's ok to use "yum update", after that run:
cat /etc/redhat-release to see if you have centos 4.5.
hugedragon
08-16-2007, 08:08 AM
It's ok to use "yum update", after that run:
cat /etc/redhat-release to see if you have centos 4.5.
hi,
I use yum update and then cat /etc/redhat-release ... its still CentOS release 4.3 (Final) :rolleyes:
nobaloney
08-16-2007, 01:08 PM
Check your /etc/yum.conf file. Check to make sure you're not excluding everything (*).
Check your /var/log/yum.log file for errors.
Jeff
hugedragon
08-16-2007, 08:04 PM
hi,
I use 'yum upgrade' and then check the yum.log but nothing inside
This my yum.conf =>
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
installonlypkgs=kernel kernel-smp kernel-devel kernel-smp-devel kernel-largesmp kernel-largesmp-devel kernel-hugemem kernel-hugemem-devel
distroverpkg=centos-release
tolerant=1
exactarch=1
retries=20
obsoletes=1
gpgcheck=1
plugins=1
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
exclude=apache* httpd* mod_* mysql* MySQL* da_* *ftp* exim* sendmail* php* named*
nobaloney
08-17-2007, 11:09 AM
Does yum appear to update? Are there any error messages? Does yum ask you if you want to update? What messages do you get in /var/log/yum.log?
Jeff
hugedragon
08-18-2007, 02:02 AM
[root@server02 ~]# cat /etc/redhat-release
CentOS release 4.3 (Final)
[root@server02 ~]# yum upgrade
Setting up Upgrade Process
Setting up repositories
update 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
No Packages marked for Update/Obsoletion
nothing inside /var/log/yum.log :o
nobaloney
08-18-2007, 07:53 AM
You may be using only dead repositories. For further info, I'd check with folk on the CentOS users mailing list.
Jeff
iceuk626
08-18-2007, 09:35 AM
[root@server02 ~]# cat /etc/redhat-release
CentOS release 4.3 (Final)
[root@server02 ~]# yum upgrade
Setting up Upgrade Process
Setting up repositories
update 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
No Packages marked for Update/Obsoletion
nothing inside /var/log/yum.log :o
i see your still using yum upgrade, try using yum update
nobaloney
08-20-2007, 10:11 AM
I should have seen that :( . Please let us know if yum update works for you.
Jeff
hugedragon
08-21-2007, 06:55 PM
hi,
same result..
[root@server02 ~]# yum update
Setting up Update Process
Setting up repositories
update 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
No Packages marked for Update/Obsoletion
nobaloney
08-21-2007, 08:25 PM
I'm out of ideas :( .
Jeff
I think the "installonlypkgs=" line in your yum.conf is preventing you from installing the other packages. You might want to comment "#" it out.
nobaloney
08-22-2007, 09:28 AM
Good catch. Makes sense.
Jeff
r0kawa
09-03-2007, 04:54 PM
I think you need to upgrade the header / banner file first than do the yum update. Yum still detect this distro still a centos 4.3 and not update to 4.4 if no OS banner for 4.4 detected.
It's almost the same as upgrading fedora
http://www.ioncannon.net/system-administration/99/upgrade-fc5-to-fc6-with-yum/
rpm -Uhv http://download.fedora.redhat.com/pub/fedora/linux/core/6/i386/os/Fedora/RPMS/fedora-release-6-4.noarch.rpm
and after that do the yum -y update for not prompting any question.
drenalin
12-13-2008, 10:11 PM
This thread is long dead...but was noticing that he has *ftp* in the include line which would like exclude all. Should just be ftp*.
thx
Scott
floyd
12-14-2008, 06:02 AM
*ftp* would exclude all ftp related rpm's which is what you want.
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.