Gentoo - how to emerge

From Linux - Help
Jump to navigation Jump to search

Gentoo-power.png Technology should be fun, powerful and free.

A quick guide, how to use emerge.

The goal of this document is to provide a quick guide to use emerge, eix for a daily base on Gentoo and Funtoo distributions.

Update Package Database:

  emerge --sync

Search a packages:

by name:

  emerge -s firefox

or via eix :

  eix firefox

by description:

  emerge -S web browser

Install a package:

  emerge firefox

install multiple packages:

  emerge firefox thunderbird

ask for confirmation and verbose before performing any changes:

  emerge -av

automatically write package.use settings as necessary to satisfy dependencies:

  emerge --autounmask-write firefox

Remove packages with confirmation:

  emerge -aC firefox

or

  emerge -a --unmerge firefox

remove orphaned packages:

  emerge -a --depclean firefox

After an update to clean your system and as a safety measure you can run the followinf command with depclean, it will not remove any packages unless all required dependencies have been resolved:

 emerge --update --newuse --deep @world

Update packages + aks confirmation + verbose:

  ego sync && emerge -uavDN @world

when upgrading to a new version of perl, it is necessary to also run perl-cleaner afterwards:

  perl-cleaner --all

update Gentoo:

  emerge -auvDN --with-bdeps=y @world

rebuild world:

  emerge --ask --deep --with-bdeps=y @world

update changes conf file

  dispatch-conf

Eix:

First you need to install eix on your system:

  emerge -av eix

update eix:

  eix-update

list app with current version (stable vs unstable)

  eix -I firefox

Example of eix -I firefox output in your terminal:

Terminal 010.png

List all packages in your system:

 cat /var/lib/portage/world | grep firefox

Online resources

http://www.funtoo.org/Emerge

http://www.funtoo.org/Package:Eix