Skip to content

eix

Practical eix cheat sheet covering installation, local/remote database sync, overlay queries, upgradeable package checks, world/profile selection helpers, and power-user flags for auditing USE/KEYWORDS/SLOTS/DEPEND metadata in the Gentoo tree


Install eix

emerge -av app-portage/eix

Print only names"

eix -# libva

Dump settings in use

eix --dump

Print useflags NOT in use

eix --print-all-useflags \ 
  |grep -o "\-.*" \
  |grep -v "_" \
  |grep -v "+"

Print in percent of all available packages in tree we installed

echo "$((`eix --only-names -I ยด \
    |wc -l` * 100 / `eix --only-names \ 
    |wc -l`))% of 100% packages from Gentoo Linux is installed"

List all installed packages

eix-installed -a

Search for cached package

eix package

Download remote database

eix-remote update1

Create/Sync remote database

eix-remote add1

Search for custom overlays

eix -R foo

Sync Portage Tree

eix > /dev/null 2>&1
if eix_status=$?; then
  eix-sync
else
  emerge --sync
fi

Print all packages that is installed from custom overlays

eix -c --installed-overlay

List Upgradeable Packages

eix --installed --upgrade | grep -o '\[U].*'

Preview All Packages That Has Been Installed From An Overlay

eix -c --installed-overlay; exit

Dump variables to stdout

eix --dump                

Dump default values of variables

eix --dump-defaults      

Print the expanded value of a variable

eix --print              

Print all variable names known to –print

eix --known-vars          

Print all EAPI used in some version

eix --print-all-eapis     

Print all IUSE/REQUIRED_USE used in some version

eix --print-all-useflags  

Print all KEYWORDS used in some version

eix --print-all-keywords  

Print all SLOT strings used in some version

eix --print-all-slots     

Print all LICENSE strings used in some package

eix --print-all-licenses  

Print all words occurring in some {,R,P}DEPEND

eix --print-all-depends   

Print the world sets

eix --print-world-sets    

Print all paths of current profile

eix --print-profile-paths 

Print all ansi color palettes

eix --256                 

Print ansi color palettes for foreground (dark)

eix --256d                

Print ansi color palette dark (normal)

eix --256d0               

Print ansi color palette dark (bright)

eix --256d1               

Print ansi color palettes for foreground (light)

eix --256l                

Print ansi color palette light (normal)

eix --256l0               

Print ansi color palette light (bright)

eix --256l1               

Print ansi color palette for background

eix --256b    

Match packages installed in several versions

eix --multi-installed 

Match duplicated packages

eix --dup-packages    

Match packages with duplicated versions

eix --dup-versions    

Match packages with a nontrivial slot

eix --slotted         

Match packages with two different slots

eix --slots           

Match packages without best slotted version

  • +: settings from LOCAL_PORTAGE_CONFIG=true
  • -: settings from LOCAL_PORTAGE_CONFIG=false
eix --upgrade[+-]

Match packages with a stable version

eix --stable[+-]          

Match packages with a testing or stable version

eix --testing[+-]         

Match packages with a non-masked version

eix --non-masked[+-]      

Match @system packages

eix --system[+-]          

Match @profile packages

eix --profile[+-]         

Match packages with a non-stable installed version

eix --installed-unstable  

Match packages with a testing installed version

eix --installed-testing   

Match packages with a masked installed version

eix --installed-masked    

Match packages of world file or @system

eix --world-file         

Match packages of a world set or @system

eix --world-set           

Match packages of @world (file, set or @system)

eix --world              

Match packages of world file

eix --selected-file      

Match packages of a world set

eix --selected-set       

Match packages of @selected (world file or set)

eix --selected           

Match packages with *.tbz2, *.gpkg.tar, or *.xpak

eix --binary             

Match packages with at least NR --binary files

eix --multi-binary NR    

Match packages from nonvirtual overlays

eix --nonvirtual                   

Match packages from virtual overlays

eix --virtual                      

Match packages from overlays

eix --overlay                  

Match packages from OVERLAY

eix --in-overlay OVERLAY            

Match packages only in OVERLAY

eix --only-in-overlay OVERLAY      

Installed from overlays

eix --installed-overlay Match packages 

Packages installed from OVERLAY

eix --installed-from-overlay OVERLAY 

Packages with an installed version provided by some overlay

eix --installed-in-some-overlay 

Packages with an installed version provided from OVERLAY

eix --installed-in-overlay OVERLAY   

Match packages with RESTRICT=fetch

eix --restrict-fetch          

Match packages with RESTRICT=mirror

eix --restrict-mirror         

Match packages with RESTRICT=primaryuri

eix --restrict-primaryuri     

Match packages with RESTRICT=binchecks

eix --restrict-binchecks      

Match packages with RESTRICT=strip

eix --restrict-strip          

Match packages with RESTRICT=test

eix --restrict-test           

Match packages with RESTRICT=userpriv

eix --restrict-userpriv       

Match packages with RESTRICT=installsources

eix --restrict-installsources 

Match packages with RESTRICT=bindist

eix --restrict-bindist       

Match packages with RESTRICT=parallel

eix --restrict-parallel       

Match packages with PROPERTIES=interactive

eix --properties-interactive  

Match packages with PROPERTIES=live

eix --properties-live         

Match packages with PROPERTIES=virtual

eix --properties-virtual      

Match packages with PROPERTIES=set

eix --properties-set          

Special

Test non matching

Before other output, print non-matching entries of /etc/portage/package.* and non-matching names of installed packages; this option is best combined with -T to clean up /etc/portage/package.*

eix -t  --test-non-matching 

Don't read unguessable slots of installed packages

eix --quick

Always read slots of installed packages

eix --care            

Always read deps of installed packages

eix --deps-installed  

Use another cache-file instead of /var/cache/eix/portage.eix

eix --cache-file      

Use remote cache-file /var/cache/eix/remote.eix

eix --remote

Use remote cache-file /var/cache/eix/remote2.eix

eix --remote2