Obsolete Releases > SME 8.x Contribs
Installing Contribs in sme without internet access
mealogav:
Thanks Terry - but my question is given that I now have a copy of the repository(s) on another machine accessible on my local network at
http://192.168.11.2/repos/releases/8/smeupdates/
http://192.168.11.2/repos/releases/8/smeupdates/i386
http://192.168.11.2/repos/releases/8/smeupdates/x86_64 etc etc
what do the yum db repository entries need to be set to in order that sme will do a software update
from the server-manager "Software Update" page?
All the setting that seem obvious to me haven't worked yet - so there's obviously something (many things!) I don't yet understand.
Thanks.
mmccarn:
You are right in your assumption about 'signal-event yum-modify' - it kicks off yum in the background in order to obtain the latest package information for display in server-manager.
db_yumrepositories show
* would tell us how your repos are currently configured.
* would tell us if there were any unexpected errors during creation of the new repos (copy & paste may have resulted in $basearch being replaced by the null string you are seeing in bash, for example)
* would allow us to comment on which repos are enabled and which are disabled
...etc.
Note that if you have internet access from ANY computer that the SME can get to, you could configure yum to use a proxy and just run updates from the web. Of course, it might take quite a bit of jiggery-pokery to get a proxy server running on your network somewhere...
Another option - get a mobile hotspot and turn that on when you want to do updates and install software ;-)
mealogav:
Thanks chaps - one of the last things I did before giving up was look at the
db yum_repositories show
output - but then I had to go to work. I'll post it here later.
Thanks Gavin
mealogav:
Ok - here's the db yum_repositories show output.
A couple of comments.
The how to at http://wiki.contribs.org/Yum_local_repository sets a new repos called "smeupdates-local". I'm just wondering now how can this possibly change the behaviour of the "normal" updating operation? (ie what you get when using server-manager Software Installer page). Wouldn't you have to change the existing "smeupdates" repos (and maybe some others?), I mean what's the mechanism that will mean that yum includes a new repository in it's search path - without including it in /etc/yum.repos.d/ ?
I've messed about with the original database entry for the smeupdates repos (smeupdates=repository) in an attempt to get it working. So this might not be exactly as the original db entry.
[root@dell ~]# /sbin/e-smith/db yum_repositories show
addons=repository
EnableGroups=no
GPGCheck=yes
MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
Name=CentOS - addons
Visible=no
status=disabled
base=repository
EnableGroups=no
Exclude=initscripts,libgsf
GPGCheck=yes
MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
Name=CentOS - os
Visible=yes
status=enabled
centosplus=repository
EnableGroups=no
GPGCheck=yes
MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
Name=CentOS - centosplus
Visible=no
status=disabled
contrib=repository
EnableGroups=no
GPGCheck=yes
MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
Name=CentOS - contrib
Visible=no
status=disabled
extras=repository
EnableGroups=no
GPGCheck=yes
MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
Name=CentOS - extras
Visible=no
status=disabled
smeaddons=repository
EnableGroups=yes
GPGCheck=yes
MirrorList=http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smeaddons-8
Name=SME Server - addons
Visible=yes
status=enabled
smecontribs=repository
EnableGroups=yes
GPGCheck=yes
MirrorList=http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smecontribs-8
Name=SME Server - contribs
Visible=no
status=disabled
smedev=repository
EnableGroups=yes
GPGCheck=yes
MirrorList=http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smedev-8
Name=SME Server - dev
Visible=no
status=disabled
smeextras=repository
EnableGroups=yes
GPGCheck=yes
MirrorList=http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smeextras-8
Name=SME Server - extras
Visible=yes
status=enabled
smeos=repository
EnableGroups=yes
GPGCheck=yes
MirrorList=http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smeos-8
Name=SME Server - os
Visible=yes
status=enabled
smetest=repository
EnableGroups=yes
GPGCheck=yes
MirrorList=http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smetest-8
Name=SME Server - test
Visible=no
status=disabled
smeupdates=repository
EnableGroups=yes
GPGCheck=yes
MirrorList=http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smeupdates-8
Name=SME Server - updates
Visible=yes
status=disabled
smeupdates-local=repository
BaseURL=http://192.168.11.2/repos/releases/8/smeupdates/$basearch
EnableGroups=yes
GPGCheck=yes
Name=SME Server - updates (local)
Visible=yes
status=enabled
smeupdates-testing=repository
EnableGroups=yes
GPGCheck=yes
MirrorList=http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smeupdates-testing-8
Name=SME Server - updates testing
Visible=yes
status=disabled
updates=repository
EnableGroups=no
Exclude=initscripts,libgsf
GPGCheck=yes
MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
Name=CentOS - updates
Visible=yes
status=enabled
[root@dell ~]#
I can't see how it can possibly work without pointing the BaseURL of all the sme repositories to my local repos on the local network
http://192.168.11.2/repos/releases/8/.... and disabling the other entries to repositories on the internet that will otherwise just cause a long time out? I might give this a try ...
mealogav:
Ok :-)
I've used "/sbin/e-smith/db yum_repositories" commands to change my repositories as follows. Essentially smexxx repos have a BaseURL pointing to my local copy of that repository. All others are disabled (just to speed it up otherwise you seem to get a long timeout for each repos that can't be reached via the MirrorList).
Not forgeting "signal-event yum-modify" (which of course I did forget first time!)
And it's worked - sort off. It has certainly updated loads of packages (250MB ). But at the weekend I updated a new install from the current iso and I think there was something like 340MB of updates.
I think that for a complete update of a "standard" install with no contribs or extras, both the base and addons repositories are required - but hey I'm no expert.
db yum_repositories show now outputs this .... (and I don't think the update has changed it back to the defaults - but this is yet to be checked properly). After checking properly I notice the post update process has reintroduced the MirrorList properties. These should be removed before trying another update or contrib install. See later posts for more info.
[root@dell ~]# /sbin/e-smith/db yum_repositories show
addons=repository
EnableGroups=no
GPGCheck=yes
MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
Name=CentOS - addons
Visible=no
status=disabled
base=repository
EnableGroups=no
Exclude=initscripts,libgsf
GPGCheck=yes
MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
Name=CentOS - os
Visible=yes
status=disabled
centosplus=repository
EnableGroups=no
GPGCheck=yes
MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
Name=CentOS - centosplus
Visible=no
status=disabled
contrib=repository
EnableGroups=no
GPGCheck=yes
MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
Name=CentOS - contrib
Visible=no
status=disabled
extras=repository
EnableGroups=no
GPGCheck=yes
MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
Name=CentOS - extras
Visible=no
status=disabled
smeaddons=repository
BaseURL=http://192.168.11.2/repos/releases/8/smeaddons/i386
EnableGroups=yes
GPGCheck=yes
MirrorList=http://mirrorlist.contribs.org/mirrorlist/smeaddons-8
Name=SME Server - addons
Visible=yes
status=enabled
smecontribs=repository
BaseURL=http://192.168.11.2/repos/releases/8/smecontribs/i386
EnableGroups=yes
GPGCheck=yes
MirrorList=http://mirrorlist.contribs.org/mirrorlist/smecontribs-8
Name=SME Server - contribs
Visible=yes
status=enabled
smedev=repository
EnableGroups=yes
GPGCheck=yes
MirrorList=http://mirrorlist.contribs.org/mirrorlist/smedev-8
Name=SME Server - dev
Visible=no
status=disabled
smeextras=repository
BaseURL=http://192.168.11.2/repos/releases/8/smeextras/i386
EnableGroups=yes
GPGCheck=yes
MirrorList=http://mirrorlist.contribs.org/mirrorlist/smeextras-8
Name=SME Server - extras
Visible=yes
status=enabled
smeos=repository
BaseURL=http://192.168.11.2/repos/releases/8/smeos/i386
EnableGroups=yes
GPGCheck=yes
MirrorList=http://mirrorlist.contribs.org/mirrorlist/smeos-8
Name=SME Server - os
Visible=yes
status=enabled
smetest=repository
EnableGroups=yes
GPGCheck=yes
MirrorList=http://mirrorlist.contribs.org/mirrorlist/smetest-8
Name=SME Server - test
Visible=no
status=disabled
smeupdates=repository
BaseURL=http://192.168.11.2/repos/releases/8/smeupdates/i386
EnableGroups=yes
GPGCheck=yes
MirrorList=http://mirrorlist.contribs.org/mirrorlist/smeupdates-8
Name=SME Server - updates
Visible=yes
status=enabled
smeupdates-local=repository
BaseURL=http://192.168.11.2/repos/releases/8/smeupdates/$basearch
EnableGroups=yes
GPGCheck=yes
Name=SME Server - updates (local)
Visible=yes
status=disabled
smeupdates-testing=repository
EnableGroups=yes
GPGCheck=yes
MirrorList=http://mirrorlist.contribs.org/mirrorlist/smeupdates-testing-8
Name=SME Server - updates testing
Visible=yes
status=disabled
updates=repository
EnableGroups=no
Exclude=initscripts,libgsf
GPGCheck=yes
MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
Name=CentOS - updates
Visible=yes
status=disabled
[root@dell ~]#
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version