Hello All, We have some machines running CentOS 4 Update 4 (4.4). We want to update these boxes to the stock CentOS 4 Update 8 (4.8). We have the 4.8 iso images. Is it possible to use up2date and have it use the 4.8 mounted iso images on a remote (install) server as the repository? The ISO's are accessible through http. These servers are remote with no CD/DVD option to upgrade that way. I have tried to Google this but can't seem to quite hit what I need. I found one that shows up2date-config GUI setup but I do not have X running on this server and do not want to screw up the config with the CLI version of it. We need to go to stock versions to match our production RHEL 4.8 machines. Thanks, John
On 07/09/2010 16:22, John Kennedy wrote:
Hello All, We have some machines running CentOS 4 Update 4 (4.4). We want to update these boxes to the stock CentOS 4 Update 8 (4.8). We have the 4.8 iso images. Is it possible to use up2date and have it use the 4.8 mounted iso images on a remote (install) server as the repository? The ISO's are accessible through http. These servers are remote with no CD/DVD option to upgrade
The best way I can think of is to create a yum repository with the RPMs from the 4.8 image on the source server then create yum.repo file on the destination files and then do a yum update.
There are lots of instructions online how to do it, do a search for "centos create yum repo iso" or something similar and you will get lots of hits.
Gabriel
At Tue, 7 Sep 2010 11:22:06 -0400 CentOS mailing list centos@centos.org wrote:
Hello All, We have some machines running CentOS 4 Update 4 (4.4). We want to update these boxes to the stock CentOS 4 Update 8 (4.8). We have the 4.8 iso images. Is it possible to use up2date and have it use the 4.8 mounted iso images on a remote (install) server as the repository? The ISO's are accessible through http. These servers are remote with no
You could mount the ISO's via the loopback device on the http server ('localeservername'):
mkdir /var/www/centos48 mount -t iso9660 -r -o loop /path/to/dvdrom.iso /var/www/centos48
then add /var/www/centos44 to /etc/httpd/conf/httpd.conf:
Alias /centos48/ "/var/www/centos48/"
<Directory "/var/www/centos48/"> Options Indexes FollowSymLinks AllowOverride None </Directory>
Then restart the httpd server:
/sbin/service httpd restart
Then on the machines you want to update:
create /etc/yum.repos.d/CentOS-48-Http.repo:
[c48-local-httpd] name=CentOS-4.8 - Local Httpd baseurl=http://localeservername/centos48/ gpgcheck=1 enabled=0 gpgkey=file:///usr/share/doc/centos-release-4/RPM-GPG-KEY-centos4
Then do
yum --disablerepo=* --enablerepo=c48-local-httpd update
(The above was cribbed from the /etc/yum.repos.d/CentOS-Media.repo)
Basicly, the DVD *IS* a repository (corresponds to the base repo).
CD/DVD option to upgrade that way. I have tried to Google this but can't seem to quite hit what I need. I found one that shows up2date-config GUI setup but I do not have X running on this server and do not want to screw up the config with the CLI version of it. We need to go to stock versions to match our production RHEL 4.8 machines. Thanks, John
John Kennedy wrote:
Hello All, We have some machines running CentOS 4 Update 4 (4.4). We want to update these boxes to the stock CentOS 4 Update 8 (4.8). We have the 4.8 iso images. Is it possible to use up2date and have it use the 4.8 mounted iso images on a remote (install) server as the repository? The ISO's are accessible through http. These servers are remote with no CD/DVD option to upgrade that way. I have tried to Google this but can't seem to quite hit what I need. I found one that shows up2date-config GUI setup but I do not have X running on this server and do not want to screw up the config with the CLI version of it. We need to go to stock versions to match our production RHEL 4.8 machines. Thanks, John -- John Kennedy
Check to see if you have the following file on your system:
/etc/yum.repos.d/CentOS-Media.repo
If you do, then just loopback mount the DVD image under /media/cdrom or /media/cdrecorder, and then use the yum command as described in that repo file:
yum --disablerepo=* --enablerepo=c4-media [command]
Not sure if that works with "up2date" or not... haven't used up2date in a long time...
-Greg