Difference between revisions of "Template:Repository"
From SME Server
Jump to navigationJump to search (Fixed typo in expand-template command) |
(Slight layout improvements) |
||
Line 1: | Line 1: | ||
− | <noinclude> | + | <noinclude>=Template: Repository= |
− | This template can be used to include a repository by name | + | This template can be used to include a repository by name. |
+ | |||
+ | ==Usage== | ||
+ | You can simply add the following command to the Wiki page you want it to display: | ||
<nowiki>{{Repository|repositoryname}}</nowiki> | <nowiki>{{Repository|repositoryname}}</nowiki> | ||
Line 12: | Line 15: | ||
</noinclude> | </noinclude> | ||
− | The following command will configure the {{{1}}} repository on SME Server. | + | <includeonly>The following command will configure the {{{1}}} repository on SME Server. |
{{:{{{1}}}}} | {{:{{{1}}}}} | ||
After adding it to the database we have to update the changes to the configuration file: | After adding it to the database we have to update the changes to the configuration file: | ||
− | expand-template /etc/yum.conf | + | expand-template /etc/yum.conf</includeonly> |
<noinclude>[[Category: Template]]</noinclude> | <noinclude>[[Category: Template]]</noinclude> |
Revision as of 21:06, 18 April 2007
Template: Repository
This template can be used to include a repository by name.
Usage
You can simply add the following command to the Wiki page you want it to display:
{{Repository|repositoryname}}
Here is a list of knwon repositories for SME Server.
The output of the template would look something like this (see the text between the horizontal rules
The following command will configure the Snetram repository on SME Server.
Snetram
After adding it to the database we have to update the changes to the configuration file:
expand-template /etc/yum.conf