QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 786|回复: 1

能从lfs升级到gentoo么??

[复制链接]
发表于 2005-1-28 14:34:39 | 显示全部楼层 |阅读模式
我电脑上只有redhat和lfs,想把lfs转换成gentoo,听说可以不用删掉lfs重新装gentoo,请问哪里有这方面的资料??找了一个上午没找着……谢谢
发表于 2005-1-28 21:45:22 | 显示全部楼层
Yes, its possible. Yes, it works fine. I risked my perfectly stable Linux install to do this. And I'm still using it. Only its Gentoo-ified.

requires:


      Python 2.2.x
      Development Packages (gcc, binutils, automake, autoconf, libtool, etc)
      Patience



Go to any Gentoo mirror, and download the portage tarball. Uncompress it, and go down.
[code:1]
cd bin/
cp * /usr/bin
cd ../pym
cp * /usr/lib/python2.2/site-packages
cd ../man
cp *.1 /usr/man/man1
cp *.5 /usr/man/man5
cd ../src/missingos
./setup.py install
cd ../sandbox-1.1
make && make install
cd ../../cnf
cp * /etc
cd ..
cp make.profile/ /etc
[/code:1]

You now have a basic working Portage installation. As root, emerge sync. This will install the Portage tree. Now, this is where you customise stuff. Go to /usr/portage/profiles, and copy in the proper profile for your install. If you're using gcc-3.2, use one of the 1.4 profiles (the one for your arch). If not, use default.

Now, edit your /etc/make.conf and add any USE variables you want. Read /usr/portage/use.desc for more information. If you use gcc-3.2, add COMPILER="gcc3" to your make.conf.

Now, if you try to emerge anything, it will really complain about dependencies. Simply do the following to get rid of glibc complaints:

[code:1]
emerge inject sys-libs/glibc-version.
emerge inject sys-devel/gcc-version
[/code:1]

emerge anything, and it may or may not complain about tar. If it does, go to the requested line in ebuild.sh, and change all instances of --no-same-owner to --same-owner. Then emerge tar
[code:1]
emerge tar
emerge sed
emerge bash
emerge pmake
emerge sys-apps/baselayout
emerge portage
[/code:1]

baselayout installs init. Read the Gentoo docs for more.

You should be good to go now. I emerged a new gcc and many of my system tools (if you emerge awk, emerge man and less, too)

I'll add more in a bit

还可以把lfs变成debian的
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-10-5 02:28 , Processed in 0.060895 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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