迁移到Funtoo, Migrate to Funtoo

大致如此步骤:

A proper git: 首先,我们需要一个合适的git:
 1. # install -d /etc/portage
2. # echo “dev-util/git perl cgi curl subversion” >> /etc/portage/package.use
3. # emerge git

Create Funtoo tree: 建立fentoo tree,我选的路径是/funtoo
 1. # mkdir /funtoo
2. # cd /funtoo
3. # git clone git://github.com/funtoo/portage.git
4. # cd portage

Modify: 别忘了要改make.conf
   PORTDIR=/funtoo/portage
Track the meta-data: 接下来,我们获取funtoo tree和gentoo tree基本信息
 1. # git checkout –track -b funtoo.org origin/funtoo.org
2. # git checkout –track -b gentoo.org origin/gentoo.org

Branch?: 我们用哪个branch呢?只要输入:
  # git branch

Get the branch: 列出了branch, 我们可以如此指定呆在哪个branch:
  # git checkout funtoo.org
.or.
# git checkout gentoo.org

Check it: 时不时用# git branch 查看自己在哪个; 你可以检验两者的区别:
  #git diff gentoo.org funtoo.org

Sync for portage 2.2 : 平时的同步,如果用的portage >= Portage 2.2_rc18,则只需直接sync即可
   # emerge --sync
>>> Starting git pull...

Without unstalble portage: 否则,就不sync了,自己去pull吧:
  # git pull

That's it! But you are on your own! 这样就Funtoo了!最后,注意看文档,后果自负!

0 comments:

Post a Comment

| More

Twitter Updates