Koozali.org: home of the SME Server

correct way to add yum repo using db command [solved]

Offline stiperstones

  • *
  • 177
  • +0/-0
    • http://www.stiperstones.com
correct way to add yum repo using db command [solved]
« 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 but did not work
Stiperstones

http://wiki.contribs.org/Koozali_Foundation
Try the Wiki some great how's there

"My Licence".........

Don't report security issues here - Contact security at contribs dot org
Don't report problems here - Please report bugs @ http://bugs.contribs.org/
Don't ask the same question twice - Please search the forums, your question may have been asked before - Thank You.

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
correct way to add yum repo using db command [solved]
« Reply #1 on: October 09, 2006, 04:07:40 AM »
What part didn't work ?

Did you do..
Code: [Select]
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) .
Regards,
William

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

Offline stiperstones

  • *
  • 177
  • +0/-0
    • http://www.stiperstones.com
correct way to add yum repo using db command [solved]
« Reply #2 on: October 09, 2006, 08:58:59 PM »
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

Code: [Select]

/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
Code: [Select]

/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
Stiperstones

http://wiki.contribs.org/Koozali_Foundation
Try the Wiki some great how's there

"My Licence".........

Don't report security issues here - Contact security at contribs dot org
Don't report problems here - Please report bugs @ http://bugs.contribs.org/
Don't ask the same question twice - Please search the forums, your question may have been asked before - Thank You.

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
correct way to add yum repo using db command [solved]
« Reply #3 on: October 10, 2006, 03:05:21 AM »
Yes, the incorrect method will give you this..
Code: [Select]
[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
Code: [Select]
[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 ~]#
Regards,
William

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