build rpm packages such as Redhat/Fedora

Garrett Holmstrom gholms at fedoraproject.org
Sun Nov 14 17:36:45 UTC 2010


On 11/13/2010 18:15, Christopher Stolzenberg wrote:
> yum install mock
> useradd mockbuild
> usermod -G mock mockbuild

Unless you want to ``su'' to a dedicated mockbuild account every time 
you want to build you should add your usual account to the mock group 
instead.

> mock rebuild -r epel-6-x86_64 /home/mockbuild/kernel-2.6.32-71.7.1.el6.src.rpm

Mock typically grabs packages from CentOS, so until CentOS 6 is out 
you're going to have to build using RHEL 6.


More information about the devel mailing list