LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 803|回复: 3

如何用live-cd装上个别软件包?

[复制链接]
发表于 2006-5-26 08:11:56 | 显示全部楼层 |阅读模式
我用的是Gentoo-2006.0的live-cd (GUI)装的系统,当时安装时没有选open-office,现在要用,想利用livecd装上一个已编译好的,可是我该怎么装呢,用emerge好像不行,会从网上提源代码(我的网速一向超慢),我该怎么用live-cd装上个别软件包呢?谢谢大家!
 楼主| 发表于 2006-5-26 21:52:03 | 显示全部楼层
怎么没人回答,是不是我哪儿写错了?
回复 支持 反对

使用道具 举报

发表于 2006-5-26 23:51:41 | 显示全部楼层
你是想把 livecd 里已经安装好的, 复制到你的系统?

应该不行, emerge 必须要源码或预编译包, livecd 里没有也没办法, 必须上网下载.
回复 支持 反对

使用道具 举报

发表于 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看看。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表