nill 发表于 2005-1-28 14:34:39

能从lfs升级到gentoo么??

我电脑上只有redhat和lfs,想把lfs转换成gentoo,听说可以不用删掉lfs重新装gentoo,请问哪里有这方面的资料??找了一个上午没找着……谢谢

linky_fan 发表于 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.

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


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:


emerge inject sys-libs/glibc-version.
emerge inject sys-devel/gcc-version


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

emerge tar
emerge sed
emerge bash
emerge pmake
emerge sys-apps/baselayout
emerge portage


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 :mrgreen:

还可以把lfs变成debian的 :mrgreen:
页: [1]
查看完整版本: 能从lfs升级到gentoo么??