Template:Repo enable
From Gentoo Wiki
(Redirected from Template:Enable repository)
Jump to:navigation
Jump to:search
[edit]
Documentation
Note
This page is a template. It contains some standardized, often used text, which can be transcluded inside other pages. As this template is widely used in our wiki, it may be protected in which case only staff members can change it. Use the discussion page to propose enhancements or fixes, or to voice your opinion.
This page is a template. It contains some standardized, often used text, which can be transcluded inside other pages. As this template is widely used in our wiki, it may be protected in which case only staff members can change it. Use the discussion page to propose enhancements or fixes, or to voice your opinion.
Use this template to show a root level terminal prompt pre-formatted with the commands to add a new ebuild repository and synchronize it.
Parameters
To show how to add an ebuild repository
Parameter | Description | Type | Status | |
---|---|---|---|---|
Repository name | 1 | Repository name as defined in 'profiles/repo_name'
| String | required |
Usage
{{Repo enable|repo}}
See the template's testcases:
Correct
One anonymous parameter
Wiki code
{{Repo enable|gentoo}}
Main version
root #
eselect repository enable gentoo
root #
emaint sync -r gentoo
Sandbox version
Incorrect
No parameter (error message)
Wiki code
{{Repo enable}}
Main version
{{Repo enable template error}}
Parameter 1 not defined. For correct usage see Repo enable template's documentation on the
1
parameter.Sandbox version
See also
- {{Emerge}} and {{Unmerge}} - Show how to install/uninstall a package.
- {{RootCmd}} – Show a terminal prompt with root user permissions.
- {{Cmd}} – Show a prompt with standard user permissions.
- {{GenericCmd}} – Show a generic, easily formattable terminal prompt.
Note
The above documentation is transcluded from Template:Repo enable/doc. (edit | history)
Editors can experiment in this template's sandbox (create) and testcases (edit) pages.
Please add categories and interwikis to the /doc subpage. (See the subpages of this template.)
The above documentation is transcluded from Template:Repo enable/doc. (edit | history)
Editors can experiment in this template's sandbox (create) and testcases (edit) pages.
Please add categories and interwikis to the /doc subpage. (See the subpages of this template.)