On Mon, 2007-01-15 at 10:00 +0400, security wrote:
Karanbir Singh a écrit :
John R Pierce wrote:
John Jack wrote:
Hi,
Can anyone help me to upgrade from 4.3 to 4.4. I don't have internet connection on my server which I want to upgrade.
download the 4.4 updates RPM directories, put it on a http server that this machine can connect to, then point the yum repo to it.
wont work. ( or, it will work - but not give you all updates )
reason: 4.4 [os] will have packages that are newer than the 4.3 [os] + 4.3 [updates]
you will need to get the entire 4.4 tree, and all 4.4 updates to be sure that you are covering all packages.
- KB
Just to further explain this ... 4.4 [os] directory contains all new packages released for 4.4 and is required to upgrade from 4.3 [os] + 4.3 [updates] repo.
4.4 updates are only updates from 4.4 [os] ... there are packages that are updates from 4.3 to 4.4 that are contained in 4.4 [os] and you will not get all updates if you ONLY apply the updates dir from 4.4 to a previous version of CentOS.
You will get all updates if you do 4.4 [os] + 4.4 [updates] (that is the normal yum setup).
However, if you are downloading the repos for offline updates, you would need both 4.4 [os] and 4.4 [updates] to be totally updated.
You can use the 4.4 DVD to provide 4.4 [os] and then just download the 4.4 updates repo to run on top of that ...
(see below)
Like apt can, there is a way to have "yum cdrom" ??? I mean like the command apt-cdrom (add CD/DVD media in source-list)
Regards
js.
Yes ... but only for the DVD (as the repodata is not split per CD).
So, you can upgrade to 4.4 [os] (and no updates after 4.4) by taking the DVD and installing it into your drive and using this command:
yum --enablerepo=c4-media update
(look at see if you have the file /etc/yum.repo.d/CentOS-Media.repo ... if not, manually install the centos-release file from the DVD, which is in /media/cdrom/CentOS/RPMS/ ... could also be /media/cdrecorder/CentOS/RPMS)
This also assumed that automount of CD/DVDS is turned on ... if you have the file /etc/yum.repo.d/CentOS-Media.repo and it does not work, try the command:
ls /media/cdrom
or
ls /media/cdrecorder
If there are no files in either, try mounting the installed DVD with the command:
mount /media/cdrom
or
mount /media/cdrecorder
The run the yum command again.
NOTE: this only upgrades you to the 4.4 release level ... downloading the /4/os/updates/$ARCH/ directory from a mirror is required to update past the initial 4.4 release.
($ARCH being your arch ... and you will need all directories under that (RPMS,repodata,headers)
Thanks, Johnny Hughes