Linux command
ebuild 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Example
ebuild [path/to/file.ebuild] manifest
Clean
ebuild [path/to/file.ebuild] clean
Fetch
ebuild [path/to/file.ebuild] fetch
Extract
ebuild [path/to/file.ebuild] unpack
Compile
ebuild [path/to/file.ebuild] compile
Install
ebuild [path/to/file.ebuild] install
Example
ebuild [path/to/file.ebuild] qmerge
Full build
ebuild [path/to/file.ebuild] merge
说明
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.
参数
- 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)
FAQ
What is the ebuild command used for?
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.
How do I run a basic ebuild example?
Run `ebuild [path/to/file.ebuild] manifest` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does manifest do in ebuild?
Create/update package manifest