On Thu, 23 Dec 2004 17:14:21 +0800, Wong Kwok-hon <kwokhon@xxxxxxxxx> wrote: > Hello! [...] > Which one is the right way ? None. > Would it become rpm? > And how about to become a rpm ? > How to remove the error kernel if failed ? The release notes for FC3 tell you how to get the kernel source. The archives for this list, fedora-devel & fedora-test-list have numerous messages on how to set up an environment so that users can compile rpms. There is absolutely no need to use /usr/src for kernel compilation. Setup ~/.rpmmarcos as shown: %_topdir /home/ringo/work/REDHAT %debug_package %{nil} %_missing_doc_files_terminate_build 0 %_unpackaged_files_terminate_build 0 %packager ringo <ringo@localhost> Then follow the steps from Michal Jaegermann's quoted post: You take 'kernel-2.6.8-1.526.src.rpm' and you run rpmbuild --rebuild --target=noarch \ --define 'buildsource 1' kernel-2.6.8-1.526.src.rpm Not tested and it may not work if '%define' inside of a kernel spec file overrides your definition of 'buildsource'. In such case you have to 'rpm -i kernel-2.6.8-1.526.src.rpm', cd "$(rpm --eval %_topdir)/SPECS" edit a corresponding spec file to replace 0 with 1 where 'buildsource' is defined, which could be a number of places, and run rpmbuild -bb --target=noarch "/my/modified/spec/file" End quote. HTH N.Emile... -- Registered Linux User # 125653 (http://counter.li.org) Certified: 75% bastard, 42% of which is tard. http://www.thespark.com/bastardtest