Koozali.org: home of the SME Server

Adding yum repositories

duncan

Adding yum repositories
« on: August 09, 2005, 09:57:34 AM »
Hi - Can anyone suggest the correct way of adding a yum repository to SME-7.

I can do it via a custom template - however Im thinking there may be a command line method.

laurie_lewis

Adding yum repositories
« Reply #1 on: August 09, 2005, 12:00:25 PM »
I can remember reading something about this at the dungog.net site.  Might help

Laurie

duncan

Adding yum repositories
« Reply #2 on: August 09, 2005, 12:32:53 PM »
Cheers - However I sussed it out.


Example
Code: [Select]
db yum_repositories set dag repository BaseURL http://apt.sw.be/redhat/el4/en/i386/dag EnableGroups 1 GPGCheck 1 Name Dag_repository status enabled

/sbin/e-smith/expand-template /etc/yum.conf


1st bit all on one line.

Offline gregswallow

  • *
  • 651
  • +1/-0
Adding yum repositories
« Reply #3 on: August 09, 2005, 04:36:57 PM »
You might want to have the status disabled for that, to avoing getting updates you didn't intend to from a regular update.  You can still do:
yum --enablerepo=Dag_repository check-update
or
yum --enablerepo=Dag_repository install xxx
...from the command line

duncan

Adding yum repositories
« Reply #4 on: August 10, 2005, 01:11:49 AM »
A good point Greg.


So using my example.
Code: [Select]
db yum_repositories set dag repository BaseURL http://apt.sw.be/redhat/el4/en/i386/dag EnableGroups 1 GPGCheck 1 Name Dag_repository status disabled

rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt

/sbin/e-smith/expand-template /etc/yum.conf


We also needed to add the gpgkey.