Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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 ''emerge'' come from dependencies. Portage developpers are not perfect and can make errors when defining dependencies. 
- 
-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 : 
-<code> 
-equery belongs <file-name> 
-</code> 
-  * 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 /usr/portage to force portage to reinstall them, and reinstall everything (that's what I had to do to install modular xorg). 
- 
-===== Emerge step-by-step for modifying source ===== 
- 
-<code bash> 
-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 
-</code> 
- 
-This is exactly equivalent to : 
-<code bash> 
-emerge fluxbox 
-</code> 
- 
-===== Save an installed package ===== 
- 
-To save your package as it is installed : 
-<code bash> 
-quickpkg xorg-x11 
-</code> 
- 
-(you need to emerge ''portage-tools'' to use it) 
- 
-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 
-</code> 
- 
-===== 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 : 
-<code> 
-sudo etc-update 
-</code> 
- 
- 
-===== 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 : 
-<code bash> 
-eclean --destructive distfiles 
-</code> 
- 
-You can add the ''-p'' option (pretend) if you just want to see what will be removed. 
- 
-===== 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 ''/tmp/portage'' in a ram disk. 
- 
-===== List of gentoo packages ===== 
- 
-[[http://dev.gentoo.org/~karltk/package-index/category_index.html]] 
- 
-===== eix ===== 
- 
-''eix'' is a portage tool which can search faster in your portage tree : 
-<code bash> 
-eix-sync # to do an emerge --sync and synchronize its database 
-eix <package-name> 
-</code> 
linux/gentoo-portage.txt ยท Last modified: 2013/09/19 16:40 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0