openSUSE Forums > New User How To/FAQ (read only) > Unreviewed How To and FAQ » Getting YaST to read your own community repos

Go Back   openSUSE Forums > New User How To/FAQ (read only) > Unreviewed How To and FAQ
Forums FAQ Members List Search Today's Posts Mark Forums Read


Unreviewed How To and FAQ POST HERE: Tips and solutions for SUSE Linux from the community. (Please do not post questions)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-Feb-2009, 16:54
Jonathan_R's Avatar
Busy Penguin
 
Join Date: Jun 2008
Posts: 476
Jonathan_R hasn't been rated much yet
Default Getting YaST to read your own community repos

Ever wonder how the community repos in yast works? Well, it works by reading off the control file found in /etc/YaST/control.xml. Now since this is an xml file, it is human readable.

Now what you're looking for in the control file is
Code:
<external_sources_link>
http://download.opensuse.org/YaST/Repos/openSUSE_111_Servers.xml
</external_sources_link>
Which in turn looks like this
Code:
<productDefines>
−
<servers config:type="list">
−
<item>
−
<link>
http://download.opensuse.org/YaST/Repos/_openSUSE_111_Default.xml
</link>
<installation_repo config:type="boolean">true</installation_repo>
<official config:type="boolean">true</official>
</item>
−
<item>
−
<link>
http://download.opensuse.org/YaST/Repos/_openSUSE_111_Additional.xml
</link>
<official config:type="boolean">true</official>
</item>
−
<item>
−
<link>
http://opensuse-community.org/openSUSE_111_Community_Additional.xml
</link>
<official config:type="boolean">false</official>
</item>
</servers>
</productDefines>
OK, so what if you wanted to do your own. You can do it locally or on a website. Basically, just follow the rules of xml. Personally, I recommend a website. Put said website into the control file, but make sure that your website conforms to these guidelines.

So if you wanted to add other repos, other than what is listed in the control file, take the
Code:
<productDefines>
−
<servers config:type="list">
−
<item>
−
<link>
http://download.opensuse.org/YaST/Repos/_openSUSE_111_Default.xml
</link>
<installation_repo config:type="boolean">true</installation_repo>
<official config:type="boolean">true</official>
</item>
−
<item>
−
<link>
http://download.opensuse.org/YaST/Repos/_openSUSE_111_Additional.xml
</link>
<official config:type="boolean">true</official>
</item>
−
<item>
−
<link>
http://opensuse-community.org/openSUSE_111_Community_Additional.xml
</link>
<official config:type="boolean">false</official>
</item>
</servers>
</productDefines>
and expand on it.

Since it's xml, I won't go into detail. If you need help, post back and ask.
__________________
My site, a portal to other sites. The Complete Computer Resource: http://thecompletecomputerresource.com/

If you want packages built, ask me. I'll either do it, or get someone else to. If they are not already built.
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2