Obsolete Releases > SME 8.x Contribs

Installing Contribs in sme without internet access

<< < (7/8) > >>

TerryF:
A cursory look, the expression stands out a dogs ba@#s comes to mind..review how you changed the repos and the commands you used.

eg If I wanted to a repo to a particular URL it would be:

db yum_repositories set smeaddons repository \
Name 'SME Server - addons' \
BaseURL 'http://mirror.contribs.org/smeserver/releases/8/smeaddons/$basearch' \
GPGCheck yes \
Visible yes \
status enabled

signal-event yum-modify
yum clean all

or as per DAG wiki

/sbin/e-smith/db yum_repositories set dag repository \
Name 'Dag - EL5' \
BaseURL 'http://apt.sw.be/redhat/el5/en/$basearch/dag' \
EnableGroups no \
GPGCheck yes \
GPGKey http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt \
Visible no \
Exclude freetype,htop,iptraf,rsync,syslinux \
status disabled

Not sure about mixing a "BaseURL" and a "MirrorList"

mealogav:
Yes - it's all becoming clearer now - messy but clearer ...!

You're right you can't mix the MirrorList and BaseURL.  As the MirrorList is not accessible you get the Error 4 I/O Error.

When I performed the update there was only the BaseURL present.  BUT when I said

--- Quote ---and I don't think the update has changed it back to the defaults - but this is yet to be checked properly
--- End quote ---

I was a bit premature!!  During the post install process the repos db seems to get rebuilt.  The mechanism is at

/etc/e-smith/db/yum_repositories/

The template scripts are in the "migrate" directory and the default setting for each repos are in the "defaults" directory.  I guess on a server that is never going to have internet access I could just delete the MirrorList files in each repos default directory?

On the plus side I have now taken a fresh installed test system (that has never had any internet access) and updated it from my local repos which is in a repos/html ibay on another sme server (that obviously has internet access and a cron rsync job that runs every night to keep it up to date).
I have also installed the phpmyadmin contrib and the php mcrypt library on the system from the same local repository. :-) :-)

I don't think it's a totally complete update as I think I need to include both the base and addons repositories.
This is mentioned in how to http://wiki.contribs.org/Yum_offline_updating.  (Which describes the other possibility of just copying the repos rpmsto a directory on the machine).

But hey - it's a massive leap forward from a few hours ago.

Thanks for all your help ....

janet:
mealogav


--- Quote ---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).
--- End quote ---

Doing a package upgrade should not change the repos default values, only a major version upgrade (ie 7 to 8 ) or a manual reset of the yum_repositories database will do that.
AFAIK the MirrorList setting overrides the BaseURL setting, but I suppose if one was not available then the system searched the other, as you say you had success.
Ah I see your newer post that says you only had the BaseURL entry, so that would explain why you had success.

Once you set the db values, they should stay unchanged except under the conditions mentioned above.
Was this a "local" upgrade from sme7.6 to 8 ?

TerryF:
mealogav

It would be a really good thing for you to have a think and write down what you have now done to accomplish your aim.

Put it in a form that can be placed in the wiki as a How To, I am sure, absolutely sure, that somone else in the short future will benefit from your experiences..

If you want to get involved in "our thing" :-) writing stuff for the docs is an easy way to get into it. Just login to the wiki and add your contribution to the discussion page, somone with the necessary permissions will review and add as appropriate to the docs.  If you really want to get involved then keep at it, look at bug processing and all that goes with that, your name will then live forever on the SME server wall of fame hahahaha

Seriously if you have a will, there is more than enough for all to do..jump in the waters fine..

 

mealogav:
Hi Terry / Janet - thanks a lot for your help.  I was about to give up, but your messages over the last few days prompted me to dig deeper and persist with it - so thanks a lot.  And yes Terry I do fully intend to write this down (I'll need to as I have to repeat it on the "production" server that's locked down in an environment with no internet access and by the time I can get to it I'll have forgotten most of what I've done!!
It really helped to manage to pickup a test server on ebay which arrived 2 days ago and which I used to test this out on (bargain twin xeon 3GHz dual core, 4GB RAm and 2 73GB SCSI Dell server for £57!).

Janet in answer to your question, this was a fresh sme8 install from the current iso burned to a CD.  The update was then to apply all the updates which is necessary to be able to install contribs without having lots of package dependancy problems.  There's other forum posts warning thaat the current iso download (dated May 2012) is now very out of date.  Once installed there are 250 to 340 MB of package updates to apply.

Also

--- Quote ---Doing a package upgrade should not change the repos default values, only a major version upgrade
--- End quote ---
Sadly this is not what I'm finding.  To make it work I make a yum db repos entry that has a BaseURL (to my local repos), with no MirrList entry.  However as soon as you perform an update, during the "signal-event post-upgrade" process the default MirrorList is added back (the BaseURL remains but there is also the default MirrorList entry).  This causes problems with the next update unless you remember to remove the MirrorList entries.
Take a look in "/etc/e-smith/db/yum_repositories/"
Like I said in my last post

--- Quote ---The template scripts are in the "migrate" directory and the default setting for each repos are in the "defaults" directory.  I guess on a server that is never going to have internet access I could just delete the MirrorList files in each repos default directory?
--- End quote ---
If the server never has internet access it will never need the Mirror sites anyway.  I'm not sure what level update would restore them - I guess a major sme8 to 9 update probably would??  But this server is never likely to see that.

Remember the whole point of my quest was simply to be able to install phpmyadmin and mcrypt to a server without internet access.

I will keep working away at it - As I've said I think there is still some repositories that technically should be included in my local repos to get a full update - it looks to me like the article at http://wiki.contribs.org/Yum_local_repository is great as far as it goes - but just the smeupdates repos is not enough for a full update.  Perhaps I should add some notes to the "Discussion" tab of that How To?
Maybe this is because the current iso is so out of date?

So thanks again - watch this space (Terry I have applied and been accepted into the wiki group!)

PS - Getting the Raid discs of the Dell server working with sme8 gave me enough material for another How To!  It is sufficiently old to have a Raid controller that other posts say is no longer supported by the megaraid driver now in Centos.  But I got it working (with the i386 distro, won't work with the x86_64 distro - you wouldn't think there should be a difference would you?)
Gavin

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version