Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: duncan 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.
-
I can remember reading something about this at the dungog.net site. Might help
Laurie
-
Cheers - However I sussed it out.
Example
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.
-
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
-
A good point Greg.
So using my example.
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.