Information AboutEbuild |
| CATEGORIES ABOUT EBUILD | |
| gentoo linux | |
| package management systems | |
|
An ebuild is a specialized Bash script written for the Portage system of Gentoo Linux to install software on the system. An ebuild is an automated way to script the "./configure && make && make install" procedure used to compile and install GNU Autotools -based source packages (although ebuilds can be written for software using any build system). In addition to automation, ebuilds (and Portage in general) allow for automatic dependency calculation, full live system upgrades (without having to reinstall the entire distribution), package uninstallation and more. Each application or package in the portage tree has an ebuild written for it. This ebuild can be invoked with the Emerge command like this: emerge of ebuild .This command calculates dependencies (installing them if necessary), downloads the source code, patches it (if necessary), configures (based on USE flag settings), compiles and performs a sandboxed install (in /var/tmp/portage/ name / by default). After these steps are successful, a list of installed files is created and the installed binaries are merged into the system. Most ebuilds are used in the above way to compile source code, but there are also ebuilds to install binary packages (such as proprietary software or very large applications such as OpenOffice.org ), ebuilds that install only documentation or data such as fonts, and metabuilds that trigger the execution of a group of other ebuilds (such as the GNOME or KDE metabuilds). EXAMPLES Here is an example ebuild for the Beep software:
|
|
|