LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ebuild

Gentoo package build interface

TLDR

Run the whole build and install in one go
$ ebuild [path/to/package.ebuild] merge
copy
Only download the source archives
$ ebuild [path/to/package.ebuild] fetch
copy
Regenerate the Manifest, which a local overlay needs after any edit
$ ebuild [path/to/package.ebuild] manifest
copy
Skip the Manifest check while testing a work-in-progress ebuild
$ ebuild --skip-manifest [path/to/package.ebuild] compile
copy
Unpack the sources and apply patches and prepare steps
$ ebuild [path/to/package.ebuild] prepare
copy
Run the package's configure phase
$ ebuild [path/to/package.ebuild] configure
copy
Run the upstream test suite
$ ebuild [path/to/package.ebuild] test
copy
Build a binary package without merging it
$ ebuild [path/to/package.ebuild] package
copy
Merge the staged image into the live filesystem
$ ebuild [path/to/package.ebuild] qmerge
copy
Uninstall the package again
$ ebuild [path/to/package.ebuild] unmerge
copy
Delete the temporary build tree
$ ebuild [path/to/package.ebuild] clean
copy
Trace a failing phase with debug output
$ ebuild --debug [path/to/package.ebuild] compile
copy

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 manifest
clean
Remove temporary build files
fetch
Download source files
unpack
Extract sources
compile
Build the package
install
Install to temp directory
qmerge
Merge to live filesystem
merge
All steps combined
unmerge
Remove from live filesystem
setup
Run pre-build setup phase
prepare
Run source preparation (patches, etc.)
configure
Run configure phase
test
Run package tests
prerm
Execute pre-removal tasks
postrm
Execute post-removal tasks
postinst
Execute post-installation tasks
digest
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.

SEE ALSO

emerge(1), equery(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid