Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: Denbert on March 05, 2006, 06:27:43 PM

Title: Modifying yum.conf!
Post by: Denbert on March 05, 2006, 06:27:43 PM
Hi,

As a European citizen I would like to use another mirror than ibiblio, as this is VERY slow from Denmark.

Looking at /etc/yum.conf says the following:
#------------------------------------------------------------------
#                  !!DO NOT MODIFY THIS FILE!!
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer’s guide, which is available
# at http://wiki.contribs.org/development
#
# Copyright © 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------------

The mentioned link gives a 404 Not Found

The server is SME 7.0pre4
I know I need to work with templates, but I can’t remember the right syntax :hammer:

Please point me in the right direction.
Title: Modifying yum.conf!
Post by: cactus on March 05, 2006, 09:31:33 PM
It should be done per the database like in this document about setting up 3rd Party Yum repositories (http://smeserver.sourceforge.net/sme70/3rdPartyYumSetup)
Title: Modifying yum.conf!
Post by: Denbert on March 05, 2006, 10:54:06 PM
Quote from: "cactus"
It should be done per the database like in this document about setting up 3rd Party Yum repositories (http://smeserver.sourceforge.net/sme70/3rdPartyYumSetup)


Thanks, but the link gives me this error:


Fatal error: session_start(): Failed to initialize storage module: user (path: /tmp) in /home/groups/s/sm/smeserver/htdocs/wakka.php on line 246
Title: Modifying yum.conf!
Post by: cactus on March 05, 2006, 11:05:18 PM
Strange I don't get an error...

Here is one setup for instance (taken from the page), perhaps this will help you configure your ibiblio link:

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


After configuring your repository issue the expand-template command:

expand-template /etc/yum.conf
Title: Modifying yum.conf!
Post by: gordonr on March 06, 2006, 06:06:33 AM
Quote from: "cactus"

Here is one setup for instance (taken from the page), perhaps this will help you configure your ibiblio link:


Actually, it won't - see bug 951.
Title: Now what?
Post by: rostons on December 06, 2006, 12:39:34 AM
Quote from: "cactus"
It should be done per the database like in this document about setting up 3rd Party Yum repositories (http://smeserver.sourceforge.net/sme70/3rdPartyYumSetup)


Hi There. I used the link in the text above and it is very cool. But now I have a question. How would I remove one of the repos added to the yum.conf file?

I am getting a alot of html when searching for things in some of the repos.

I don't see any contact info...
Title: Re: Now what?
Post by: william_syd on December 06, 2006, 05:48:09 AM
Quote from: "rostons"
Quote from: "cactus"
It should be done per the database like in this document about setting up 3rd Party Yum repositories (http://smeserver.sourceforge.net/sme70/3rdPartyYumSetup)


Hi There. I used the link in the text above and it is very cool. But now I have a question. How would I remove one of the repos added to the yum.conf file?

I am getting a alot of html when searching for things in some of the repos.

I don't see any contact info...


I had a similar problem recently.


Ref Bug 2118 (http://bugs.contribs.org/show_bug.cgi?id=2118)

I was sent a replacement smeserver-yum package that solved it. I think it's the same one that is in 7.1a1.
Code: [Select]

wget http://www.magicwilly.webhostingpal.com/SME7%20RPM/test/smeserver-yum-1.2.0-22.noarch.rpm
yum --enablerepo=smeupdates-testing localinstall smeserver-yum-1.2.0-22.noarch.rpm
rm /home/e-smith/db/yum_repositories
signal-event post-upgrade
signal-event reboot


This will also remove any custom yum repositories.