วันศุกร์ที่ 10 กันยายน พ.ศ. 2553

Gentoo prebuilt package installation

With gentoo, you can customize every packages you want because gentoo give that choices to you. Emerge, package manager, will built package for you from source code. However, compiling package in gentoo can be very time-consuming task, Especially, when you have more gentoo system. I have found option of emerge that can build package and you can use this prebuilt package to other system.

(1) build package
#quickpkg mysql
- This will build package from files on your system. If the package you wanna built are on the system already.


#emerge -b mysql
-the -b(--buildpkg) option tell emerge to do additional task when installing package to the system.

*In this case(mysql), the prebuilt package will be available in /usr/portage/packages/dev-db/ directory.

(2) use prebuilt package
Place the prebuilt package in appropriate directory, in this case : /usr/portage/packages/dev-db/
#emerge --usepkgonly mysql

For more information please consult the man page :
#man emerge
#man quickpkg
#man make.conf

ไม่มีความคิดเห็น:

แสดงความคิดเห็น