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

J.Y. Hsu infernoxu at gmail.com
Tue Jul 19 05:12:44 UTC 2011


带~么?

弄不弄 OpenRC呢?

2011/7/13 微菜 <microcai at fedoraproject.org>

>
>
> 这个是 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 :)
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> --
> 我是天马博士,对,就是创造了阿童木的那个天马博士
>
>
> _______________________________________________
> Chinese mailing list
> Chinese at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/chinese
>
>


-- 
http://ucarenya.com/


More information about the Chinese mailing list