Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: stiperstones on October 08, 2006, 11:17:42 PM
-
Would like to add a new repo to yum repository using the db command could sombody please enlighten me followed the commands on wiki for adding 3rd party repo's (http://no.longer.valid/phpwiki/index.php/3rdPartyYumRepositories) but did not work
-
What part didn't work ?
Did you do..
expand-template /etc/yum.conf
after the db commands ?
Also note that there disabled by default. So on the command line you need --enablerepo=(repo name) .
-
Thank you william_syd
I have found out myself that i had wrote my code wrong i added an = sign between value and answer
Incorrect input
/sbin/e-smith/db yum_repositories set my_repository_name repository \
BaseURL=http://www.myservername.org/pub/file/file/RPM/file/myrepository/ \
EnableGroups=yes \
GPGCheck=no \
Name='my_repository_name' \
Visible=no \
status=disabled
expand-template /etc/yum.conf
correct values
/sbin/e-smith/db yum_repositories set my_repository_name repository \
BaseURL http://www.myservername.org/pub/file/file/RPM/file/myrepository/ \
EnableGroups yes \
GPGCheck no \
Name 'my_repository_name' \
Visible no \
status disabled
expand-template /etc/yum.conf
-
Yes, the incorrect method will give you this..
[root@vmsme7go ~]# /sbin/e-smith/db yum_repositories show my_repository_name
my_repository_name=repository
BaseURL=http://www.myservername.org/pub/file/file/RPM/file/myrepository/=EnableGroups=yes
GPGCheck=no=Name=my_repository_name
Visible=no=status=disabled
[root@vmsme7go ~]#
instead of
[root@vmsme7go ~]# /sbin/e-smith/db yum_repositories show my_repository_name
my_repository_name=repository
BaseURL=http://www.myservername.org/pub/file/file/RPM/file/myrepository/
EnableGroups=yes
GPGCheck=no
Name=my_repository_name
Visible=no
status=disabled
[root@vmsme7go ~]#