§2023-09-22

eselectis a tool for administration and configuration on Gentoo systems. It will modify the system's behavior and should be used with care by the system administrator. eselect is a modular framework for writing configuration utilities, consisting of:

¶Installation

Deployments of Gentoo Linux should already have eselect installed, as the app-admin/eselect package is part of the system set.

¶ Usage

Available repositories:
  [135] gentoo # (https://gentoo.org/)   <-- # sign indicates installed
# eselect repository enable gentoo-zh
Adding gentoo-zh to /etc/portage/repos.conf/eselect-repo.conf ...
1 repositories enabled

# cat  /etc/portage/repos.conf/eselect-repo.conf
# created by eselect-repo

[gentoo-zh]
location = /var/db/repos/gentoo-zh
sync-type = git
sync-uri = https://github.com/gentoo-mirror/gentoo-zh.git
# emerge --sync
...
 * IMPORTANT: 14 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


Action: sync for repo: gentoo, returned code = 0
Action: sync for repo: gentoo-zh, returned code = 0
rpi4bGentoo /home/alexlai # ls -l /etc/portage/repos.conf/
total 12
-rw-r--r-- 1 root root  27 Sep 24 09:53 eselect-repo.conf
-rw-r--r-- 1 root root 148 Sep 24 09:35 eselect-repo.conf~
-rw-r--r-- 1 root root 147 Sep 15 18:35 gentoo.conf
rpi4bGentoo /home/alexlai # cat  /etc/portage/repos.conf/eselect-repo.conf
# created by eselect-repo

rpi4bGentoo /home/alexlai # cat  /etc/portage/repos.conf/eselect-repo.conf~
# created by eselect-repo

[gentoo-zh]
location = /var/db/repos/gentoo-zh
sync-type = git
sync-uri = https://github.com/gentoo-mirror/gentoo-zh.git