On Thu, 2004-06-10 at 19:25 +0200, Eric Daras wrote: > Trond, > > Wednesday, June 9, 2004, 1:51:56 PM, you wrote: > > TAH> Chris Kloiber wrote: > >> What is wrong with rpm -ivh kernel*.src.rpm, then making your changes > >> and recompiling with rpmbuild -ba kernel-2.6.spec? > > TAH> It's not wrong, it's what he wanted to know... > > > > Is there doc that expain how to do it step by step ? Otherwhise can > you give me some guidelines... Even becoming root is not strictly needed if you set up a non-root build environment, but... $ su - # rpm -ivh kernel-2.6.6-1.424.src.rpm # cd /usr/src/redhat >From there, you find the spec file in SPECS, the sources in SOURCES. You can patch the sources as needed, and/or edit the spec file. Finally you can run the command(s): # cd SPECS # rpmbuild -ba --target=noarch,i686 kernel-2.6.spec If all goes well, you will find the new *.src.rpm in ../SRPMS, the kernel-sourcecode* and kernel-doc* in ../RPMS/noarch and the kernel*. i686.rpm files in ../RPMS/i686. Normally it won't go well the first few times, but keep at it. There are books available about rpm building, as well as other mailing lists. -- Chris Kloiber