|
|
发表于 2006-5-27 15:42:32
|
显示全部楼层
如果还没有emerge sync的话。看doc的部分。
3.d. Binary Package Support
Creating Prebuilt Packages
Portage supports the installation of prebuilt packages. Even though Gentoo does not provide prebuilt packages by itself (except for the GRP snapshots) Portage can be made fully aware of prebuilt packages.
To create a prebuilt package you can use quickpkg if the package is already installed on your system, or emerge with the --buildpkg or --buildpkgonly options.
If you want Portage to create prebuilt packages of every single package you install, add buildpkg to the FEATURES variable.
More extended support for creating prebuilt package sets can be obtained with catalyst. For more information on catalyst please read the Catalyst Reference Manual and Catalyst Frequently Asked Questions.
Installing Prebuilt Packages
Although Gentoo doesn't provide one, you can create a central repository where you store prebuilt packages. If you want to use this repository, you need to make Portage aware of it by having the PORTAGE_BINHOST variable point to it. For instance, if the prebuilt packages are on ftp://buildhost/gentoo:
Code Listing 10: Setting PORTAGE_BINHOST in /etc/make.conf
PORTAGE_BINHOST="ftp://buildhost/gentoo"
When you want to install a prebuilt package, add the --getbinpkg option to the emerge command alongside of the --usepkg option. The former tells emerge to download the prebuilt package from the previously defined server while the latter asks emerge to try to install the prebuilt package first before fetching the sources and compiling it.
For instance, to install gnumeric with prebuilt packages:
Code Listing 11: Installing the gnumeric prebuilt package
# emerge --usepkg --getbinpkg gnumeric
把这个ftp://buildhost/gentoo改为、/mnt/cdrom看看。 |
|