[FZH] [Gentoo安装] 在 Fedora 系统下安装 portage 实现真正的双系统, 然后平滑过渡到 Gentoo 系统下

微菜 microcai at fedoraproject.org
Wed Jul 13 07:15:28 UTC 2011


http://bbs.fedora-zh.org/showthread.php?5978-%E5%9C%A8-Fedora-%E7%B3%BB%E7%BB%9F%E4%B8%8B%E5%AE%89%E8%A3%85-portage-%E5%AE%9E%E7%8E%B0%E7%9C%9F%E6%AD%A3%E7%9A%84%E5%8F%8C%E7%B3%BB%E7%BB%9F-%E7%84%B6%E5%90%8E%E5%B9%B3%E6%BB%91%E8%BF%87%E6%B8%A1%E5%88%B0-Gentoo-%E7%B3%BB%E7%BB%9F%E4%B8%8B&p=20679#post20679

看这个好了,呵呵。
修改了一个错误。


On 2011年07月13日 15:07, 微菜 wrote:
> 
> 
> 这个是 IRC 上的 CyrusYzGTt 提出来的要求。需求是这样的:
> 他有个 Fedora 系统,但是眼馋 Gentoo 系统. 希望能不丢弃 Fedora 的同时使用
> 上 Gentoo 的 portage.
> 
> 或许等 portage 安装的包逐渐替换掉 Fedora 的包,那系统就平滑过渡到 Gentoo
> 了。
> 
> 然后我一直想找个机会实战一下,结果今天居然一次成功了。
> 
> 其实做法很简单,就是安装个 portage 和同步一个 portage tree
> 
> 同步个 portage tree 非常简单,就是下载个 snapshot, 解压到 /usr 就好了
> 
> wget http://mirrors.163.com/gentoo/snapshots/portage-latest.tar.xz
> tar -xf portage-latest.tar.xz -C /usr
> 
> 这样就可以了。
> 
> 然后是安装 portage , 注意, portage 要安装2次。第一次手工安装,然后第二
> 次是用 portage 装 portage.
> 
> 
> 下载  portage 解压它
> 
> http://mirrors.163.com/gentoo/distfiles/portage-2.1.10.5.tar.bz2
> tar -xf portage-2.1.10.5.tar.bz2
> 
> 手工安装  portage
> 
> mkdir /usr/lib/portage
> cp -a portage-2.1.10.5/* /usr/lib/portage
> 
> 
> #建立 config
> 
> mkdir -pv /usr/share/portage/config
> 
> cp -a portage-2.1.10.5/cnf/* /usr/share/portage/config
> 
> #建立默认的 make.conf
> cp  portage-2.1.10.5/cnf/make.conf /etc
> 
> ( cd /etc && patch -p0  ) < portage-2.1.10.5/cnf/make.conf.amd64.diff
> 
> 
> 做软链接, 把 /usr/lib/portage/bin 目录下的东西都链接一份到 /usr/bin (目
> 录除外)
> 
> cd /usr/bin/
> ln -svf ../lib/portage/bin/emerge
> ln -svf ../lib/portage/bin/ebuild
> 
> .
> .
> .
> 
> 然后是建立选择 profile
> ln -svf ../usr/share/portage/config/make.globals /etc/make.globals
> 
> 
> 
> 好了,开始 emerge !
> 
> FEATURES=-sandbox emerge -av --nodeps portage !
> 
> 这次一定要 -sandbox , 因为 Fedora 默认没有安装 sandbox :)
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 


-- 
我是天马博士,对,就是创造了阿童木的那个天马博士

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
Url : http://lists.fedoraproject.org/pipermail/chinese/attachments/20110713/366d4a4f/attachment.bin 


More information about the Chinese mailing list