Changes

Jump to navigation Jump to search
m
added prerequisites to TOC
Line 8: Line 8:  
Mock is a Fedora project that allows you to build RPM packages within a chroot environment, allowing you to build packages for other systems than the one you're running on (e.g. building CentOS 4 32-bit RPMs on a CentOS 5 64-bit host), and ensuring that all the required build dependencies are specified correctly in the RPM spec file.
 
Mock is a Fedora project that allows you to build RPM packages within a chroot environment, allowing you to build packages for other systems than the one you're running on (e.g. building CentOS 4 32-bit RPMs on a CentOS 5 64-bit host), and ensuring that all the required build dependencies are specified correctly in the RPM spec file.
   −
It is recommended that you use the latest CentOS 6 (64bit) version as a base http://mirror.centos.org/centos/6/isos/x86_64/
+
==== Prerequisites ====
* I have verified this with CentOS-6.3-x86_64-bin-DVD1.iso
      +
* It is recommended that you use the latest CentOS 6 (64bit) version as a base http://mirror.centos.org/centos/6/isos/x86_64/
   −
You should apply all available updates.
+
* Apply all available updates.
 
<syntaxhighlight lang="Bash">
 
<syntaxhighlight lang="Bash">
# Check for, and apply, all updates
   
yum update
 
yum update
 
</syntaxhighlight>
 
</syntaxhighlight>
   −
 
+
* You need to have EPEL repository configured as EPELs version of mock will be used
You need to have EPEL repository configured as EPELs version of mock will be used
   
<syntaxhighlight lang="Bash">
 
<syntaxhighlight lang="Bash">
 
# Enable EPEL for Centos 6
 
# Enable EPEL for Centos 6
Line 25: Line 23:  
</syntaxhighlight>
 
</syntaxhighlight>
   −
You need to create a new user, for mock will not accept user root for building packages
+
* You need to create a new user, for mock will not accept user root for building packages
 
<div class="mw-collapsible mw-collapsed" data-collapsetext="Collapse" data-expandtext="More on creating a sudo user">
 
<div class="mw-collapsible mw-collapsed" data-collapsetext="Collapse" data-expandtext="More on creating a sudo user">
  

Navigation menu