Selected set (Portage)

The selected set Article description::contains the packages the user has explicitly installed. The selected set, together with the system set, make up the world set. With a couple of exceptions, Portage will register select set package atoms to the file.

Avoiding an atom in the world file
To install a package without adding it to the selected set ( file):

Checking the world file
The command can be used to see if any problems exist in the world file:

Keeping the world file clean
In order to avoid problems in dependency resolution when updating the system, the file should contain as few dependencies as possible. So use the   option for emerging dependencies.

Dependencies already listed in this file can be found using the command and be collected in a file say :

Entries collected in can be cross-checked using the   option:

The option will remove these entries without unmerging them.

In case indicates some needed or wanted package would be unmerged, those can be re-added using the  option:

It will add the atom to the file without compiling it again.

Adding an atom without recompilation
To add a package to the selected set without recompiling the package:

External resources

 * https://forums.gentoo.org/viewtopic-t-1042252-start-11.html - A forum thread that discusses dependency calculation using the world file.