Kernel compilation from src.rpm
Kevin H. Hobbs
kevin.hobbs.1 at ohiou.edu
Mon Jan 30 19:01:00 UTC 2006
On Mon, 2006-01-30 at 13:35 -0500, Stephane Gaucher wrote:
> Is it possible to re-compile the exact kernel from the
> kernel-xyz.src.rpm !?!
Yes, you could do it as root in /usr/src/redhat/ or as a regular user by
putting the following in your ~/.rpmmacros.
# ~/.rpmmacros
%packager %(echo "$USER")
%_topdir %(echo "$HOME")/rpmbuild
Then create the directories that rpmbuild needs.
mkdir ~/rpmbuild
mkdir ~/rpmbuild/SOURCES
mkdir ~/rpmbuild/RPMS
mkdir ~/rpmbuild/BUILD
mkdir ~/rpmbuild/SRPMS
Then rebuild the kernel.
rpmbuild --rebuild kernel-xyz.src.rpm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-test-list/attachments/20060130/d7f6b12b/attachment.sig>
More information about the fedora-test-list
mailing list