SCIENTIFIC-LINUX-DEVEL Archives

April 2015

SCIENTIFIC-LINUX-DEVEL@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Dirk Hoffmann <[log in to unmask]>
Reply To:
Dirk Hoffmann <[log in to unmask]>
Date:
Fri, 24 Apr 2015 17:25:26 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (17 lines)
> One final note.  If you want to download the source code of packages you
> have installed, you can do this:
>
>  $ yumdownloader --source kernel
>
> Doing an 'rpm -i' will then unpack the src.rpm into ~/rpmbuild.  And
> going into ~/rpmbuild/SPECS/, you can do:
>
>  $ rpmbuild -bp kernel.spec
>
> Then you'll get the complete kernel code unpacked and patched, ready to
> be reviewed in ~/rpmbuild/BUILD/kernel-.....  Replacing -bp with -bb
> will build the RPMs.   But for building, I rather recommend using 'mock'.

Thank you very much David, that is exactly what I wanted to do!
 									Dirk

ATOM RSS1 RSS2