Koozali.org: home of the SME Server

Modifying yum.conf!

Offline Denbert

  • *
  • 156
  • +0/-0
    • hegnstoften.net
Modifying yum.conf!
« 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.
/ Denbert
"Success is not final, failure is not fatal: it is the courage to continue that counts" - Sir Winston Churchill

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Modifying yum.conf!
« Reply #1 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
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Denbert

  • *
  • 156
  • +0/-0
    • hegnstoften.net
Modifying yum.conf!
« Reply #2 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


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
/ Denbert
"Success is not final, failure is not fatal: it is the courage to continue that counts" - Sir Winston Churchill

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Modifying yum.conf!
« Reply #3 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
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline gordonr

  • *
  • 646
  • +0/-0
    • http://www.smeserver.com.au/
Modifying yum.conf!
« Reply #4 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.
............

rostons

Now what?
« Reply #5 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


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...

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: Now what?
« Reply #6 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


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

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.
Regards,
William

IF I give advise.. It's only if it was me....