Differences
This shows you the differences between two versions of the page.
linux:gentoo-portage [2006/12/16 12:01] cyril |
linux:gentoo-portage [2013/09/19 16:40] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Portage ====== | ||
- | Portage is the package manager of Gentoo. | ||
- | |||
- | ===== Dealing with most problems ===== | ||
- | |||
- | A lot of problems during '' | ||
- | |||
- | If emerge fails you can try : | ||
- | * if you see that the error message is related to something, try to install this package before (eg opengl). If you don't know to which package a file is related : | ||
- | < | ||
- | equery belongs < | ||
- | </ | ||
- | * install manually some of the dependencies before, it changes the order and can work | ||
- | * if nothing works, unmerge all packages related to what you want (eg x11), or remove them from / | ||
- | |||
- | ===== Emerge step-by-step for modifying source ===== | ||
- | |||
- | <code bash> | ||
- | ebuild fluxbox fetch ; to download the package | ||
- | ebuild fluxbox unpack | ||
- | ; here you can modify sources | ||
- | ebuild fluxbox compile ; to compile | ||
- | ebuild fluxbox install ; to install (first part) | ||
- | ebuild fluxbox qmerge | ||
- | ebuild fluxbox clean ; to clean temporary folders | ||
- | </ | ||
- | |||
- | This is exactly equivalent to : | ||
- | <code bash> | ||
- | emerge fluxbox | ||
- | </ | ||
- | |||
- | ===== Save an installed package ===== | ||
- | |||
- | To save your package as it is installed : | ||
- | <code bash> | ||
- | quickpkg xorg-x11 | ||
- | </ | ||
- | |||
- | (you need to emerge '' | ||
- | |||
- | To restore it (obliges emerge to use local binaries) : | ||
- | <code bash> | ||
- | emerge -K xorg-x11 | ||
- | #OR | ||
- | emerge --usepkgonly -a xorg-x11-6.8.2-r8 | ||
- | </ | ||
- | |||
- | ===== Updating config files ===== | ||
- | |||
- | After an emerge, there is often a warning telling you that some config files need to be updated. The tool called '' | ||
- | < | ||
- | 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 '' | ||
- | |||
- | There is a portage tool called '' | ||
- | <code bash> | ||
- | eclean --destructive distfiles | ||
- | </ | ||
- | |||
- | You can add the '' | ||
- | |||
- | ===== Compiling in RAM ===== | ||
- | |||
- | If you have enough memory, it can be faster to compile directly in the memory instead of on the hard disk. For that, mount ''/ | ||
- | |||
- | ===== List of gentoo packages ===== | ||
- | |||
- | [[http:// | ||
- | |||
- | ===== eix ===== | ||
- | |||
- | '' | ||
- | <code bash> | ||
- | eix-sync # to do an emerge --sync and synchronize its database | ||
- | eix < | ||
- | </ |