Monday, September 7, 2009

eselect

In this article i will present that we can do with the eselect command.

Definition : eselect is a command to configure and administrate gentoo system.It can be use for example to switch kernel or java version.You have to use this command carrefully.

Installation : It's possible that you need to install before use.To install :
$ echo app-admin/eselect ~x86 >> /etc/portage/package.keywords
$ emerge -av app-admin/eselect

Common use : List possible selection and set one of them
eselect list

Example:
# eselect java-vm list
Available Java Virtual Machines:
[1] sun-jdk-1.5
[2] sun-jdk-1.6 system-vm

# eselect kernel list
Available kernel symlink targets:
[1] linux-2.6.26-gentoo-r3
[2] linux-2.6.27-gentoo-r4
[3] linux-2.6.27-gentoo-r5
[4] linux-2.6.27-gentoo-r7
[5] linux-2.6.28-gentoo
[6] linux-2.6.28-gentoo-r1
[7] linux-2.6.29-gentoo-r2
[8] linux-2.6.29-gentoo-r4
[9] linux-2.6.30-gentoo-r1 *

Set a selection :

# eselect kernel set 1
# eselect kernel set linux-2.6.27-gentoo-r7

Activate fonction to a module :

You can for example activate or disable vim for bash completion.

Example :
$ eselect bashcomp enable vim



http://www.gentoo.org/proj/en/eselect/index.xml

No comments:

Post a Comment