This is an old revision of the document!


Portage

Portage is the package manager of Gentoo.

Emerge step-by-step for modifying source

ebuild fluxbox fetch   ; to download the package
ebuild fluxbox unpack  ; to uncompress the sources
; here you can modify sources
ebuild fluxbox compile ; to compile
ebuild fluxbox install ; to install (first part)
ebuild fluxbox qmerge  ; to install (second part)
ebuild fluxbox clean   ; to clean temporary folders

This is exactly equivalent to :

emerge fluxbox

Save an installed package

To save your package as it is installed :

quickpkg xorg-x11

To restore it (obliges emerge to use local binaries) :

emerge -K xorg-x11

Updating config files

After an emerge, there is often a warning telling you that some config files need to be updated. The tool called etc-update can help you to do this, by merging automatically what it can and asking your for the rest :

sudo etc-update

Clean your portage folder

If you do anything about it, your portage folder will grow along time. This is due to the distfiles folder, where are stored all source tarballs of packages you have installed.

There is a portage tool called eclean which can remove all useless tarballs while keeping interesting ones :

eclean --destructive distfiles

List of gentoo packages

linux/gentoo-portage.1166149633.txt.gz · Last modified: 2013/09/19 16:42 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0