← 返回命令列表

Linux command

eselect-repository 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List

eselect repository list

Example

eselect repository list -i

Enable

eselect repository enable [name|index]

Add

eselect repository add [name] [git|rsync|svn] [sync_uri]

Disable

eselect repository disable [repo1] [repo2]

Remove

eselect repository remove [repo1] [repo2]

Create

eselect repository create [name] [path/to/repo]

说明

eselect repository configures ebuild repositories for Portage on Gentoo systems. It can enable, disable, add, or remove repositories from the Gentoo repository list. After enabling a repository, run `emerge --sync repo_name` to download ebuilds.

参数

list
List all registered repositories
-i
Show only installed/enabled
enable _repo_
Enable a repository
disable _repo_
Disable without removing
remove _repo_
Disable and remove contents
add _name_ _type_ _uri_
Add unregistered repository
create _name_ _path_
Create local repository

FAQ

What is the eselect-repository command used for?

eselect repository configures ebuild repositories for Portage on Gentoo systems. It can enable, disable, add, or remove repositories from the Gentoo repository list. After enabling a repository, run `emerge --sync repo_name` to download ebuilds.

How do I run a basic eselect-repository example?

Run `eselect repository list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does list do in eselect-repository?

List all registered repositories