ebuild
Gentoo package build interface
TLDR
SYNOPSIS
ebuild file command...
DESCRIPTION
ebuild is a low-level interface to the Gentoo Portage system. It processes ebuild files, which are Bash scripts describing how to build and install packages.The tool provides direct access to individual build phases (fetch, unpack, compile, install, merge), allowing developers to test and debug packages step-by-step. This is essential for package maintainers creating or modifying ebuilds.While emerge is used for normal package management, ebuild gives fine-grained control over the build process. It's particularly useful for testing new packages before adding them to the portage tree or for manually installing custom ebuilds.
PARAMETERS
manifest
Create/update package manifestclean
Remove temporary build filesfetch
Download source filesunpack
Extract sourcescompile
Build the packageinstall
Install to temp directoryqmerge
Merge to live filesystemmerge
All steps combinedunmerge
Remove from live filesystemsetup
Run pre-build setup phaseprepare
Run source preparation (patches, etc.)configure
Run configure phasetest
Run package testsprerm
Execute pre-removal taskspostrm
Execute post-removal taskspostinst
Execute post-installation tasksdigest
Create manifest (legacy alias for manifest)
CAVEATS
Gentoo-specific. For normal package management, use emerge. Ebuild files require specific directory structure in portage tree. By default, ebuild executes all phases in order up to the specified one, skipping phases already completed in a previous invocation.
