I now have a "test" sme server that I can disconnect from the internet to develop this technique further.
I've follow the suggestion mmccarn made in forum post :
http://forums.contribs.org/index.php/topic,49707.msg248693.html#msg248693to set up a local yum repository and install from there.
I've followed the instructions at
http://wiki.contribs.org/Yum_local_repositoryand I have the local repos in a repos ibay on my normal hoem server sme machine. That all seems to have worked well and I can browse to it at
http://192.168.11.2/repos/ and follow the links to
http://192.168.11.2/repos/releases/8/smeupdates/i386/repoview/ and see a html page of packages.
(Because after it has updated I want to install phpMyAdmin on my server that has no internet access,
I removed some of the exclusions from the rsync command so I actually have
repos/releases/8/smeupdates
repos/releases/8/smeaddons
repos/releases/8/smeextras
repos/releases/8/contribs
about 1.5GB)
So far so good ...
So on my separate sme server (without internet access), I do a fresh sme8 install from the iso, then follow the instructions for the "client"
[root@dell files]# /sbin/e-smith/db yum_repositories setprop smeupdates status disabled
ok
I modified the repository set command to suit sme8 (the example is for 7 and seems to have a spurious smeserver directory that doesn't exist on the sme8 mirror that I downloaded from -
http://distro.ibiblio.org/ )
from BaseURL 'http://<yourServersIP or FQDN>/repos/smeserver/releases/7/smeupdates/$basearch' \
to BaseURL '
http://192.168.11.2/repos/releases/8/smeupdates/$basearch' \
[root@dell files]# /sbin/e-smith/db yum_repositories set smeupdates-local repository \
> Name 'SME Server - updates (local)' \
> BaseURL '
http://192.168.11.2/repos/releases/8/smeupdates/$basearch' \
> EnableGroups yes \
> GPGCheck yes \
> Visible yes \
> status enabled
[root@dell files]# signal-event yum-modify
ok so far ... BUT
when I try the
yum clean all command I get the following message that repeats every 2 seconds ...:
Loaded plugins: fastestmirror, protect-packages, smeserver
Existing lock /var/run/yum.pid: another copy is running as pid 3700.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
Memory : 13 M RSS ( 22 MB VSZ)
Started: Wed Jul 10 10:08:35 2013 - 01:06 ago
State : Sleeping, pid: 3700
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
Memory : 13 M RSS ( 22 MB VSZ)
Started: Wed Jul 10 10:08:35 2013 - 01:08 ago
State : Sleeping, pid: 3700
I assume this is yum re-configuring?? If you wait (about 20 mins) and repeat the command it seems to work ...
[root@dell files]# yum clean all
Loaded plugins: fastestmirror, protect-packages, smeserver
Cleaning up Everything
Cleaning up list of fastest mirrors
[root@dell files]#
I assume that in server-manager when I go to the "Software Installer" page the updates should now be located from the repos on the
192.168.11.2 server? Is that correct?
What I get is the normal message saying that "Updates are available" but when I click to install them in the scroll list that would normally show packages to be updated is the message:
Could not - retrieve
[Errno 4] - IO Error:
I've tried to check the setting of the $basearch variable by using "echo". It appears to be empty?? Is this a concern? I'm only guessing, but I expected this to contain the cpu architecture eg "i386"
[root@dell files]# echo $basearch
[root@dell files]#
I'm sorry to be such a pain about this but I feel I'm very close now and just need a final nudge in the right direction.
Thanks for any further help. Gavin