Advanced Emerge

Introduction

Warning! You can really screw up your system using advanced emerge if the wrong version or settings are used!

As with all things technical, there is a deeper level of control afforded by portage when it comes to installing packages.  Setting use flags, accepting keywords and specifying certain options during emerge allow the user to tailor and fine tune the system as well as override default installation behaviour.

The advanced emerge dialog can only emerge one package at a time.

The advanced emerge dialog is split into three basic sections: emerge options, package options and a button bar.  The package options section is further divided into three sub-sections: version list selector, use flags and keyword acceptor.

Emerge Options

The emerge options control emerge's behaviour when managing packages.  The features of this section are:

Only the options that make sense for installing a package are listed.  The options that assist in formatting output (e.g. --columns) or displaying information that Porthole already supplies (e.g. --changelog) were omitted to save space on the menu and make the interface as simple as possible.

A good practice is to use pretend first if you are not sure of the results of your selected options.


Figure 1. Advanced Emerge Dialog

Package Options

Note: Changing the version will change and reset the use flags and keyword to accept sections.

Version List

The version list is a drop-down select list containing all the different ebuilds for this package.

Warning! The OLDEST version is selected by default; make sure you have the CORRECT version selected before executing!
 The versions are sorted in release order1 with the oldest first and the most recent last.  The default selection for the version selector is the oldest version.

The list also contains that versions' slot number and a flag if that version is currently installed or it is the best/latest (preferred?) version.

Use Flags

Use flags customize what features are included with this package.  In general, the more use flags selected, the more software will be installed.  The use flags displayed are unique to the version selected in the version drop-down list.  The features of the use flag section are:

Important: Use flags are set in the command line according to the following rules:

  1. If the use flag has a plus in front and you deselect it, a -useflag will be added to the emerge command, effectively reversing your system default use flag setting.
  2. If the use flag has a minus in front and you select it, a +useflag will be added to the emerge command.

Keyword to Accept

Keywords indicate which architecture is supported and whether the package is considered stable or not.  Unstable packages are prefixed with a tilde (~).  The keywords displayed are unique to the version selected in the version drop-down list.  The features for the keyword list are:

TIP: Use the pretend option to test your settings before committing to an installation.

Buttons


Notes:
  1. We are somewhat at the mercy of the developers who seem to be able to create new and increasingly difficult numbering schemes faster than we can figure out how to sort them.