[CentOS-devel] mock using yum .repo file?

Sun Jul 24 15:15:41 UTC 2011
Alberto Sentieri <22t at tripolho.com>

I am also interested in building packages and I do not know where to 
start from. Is there a howto with the basics on the subject?


On 07/24/2011 10:02 AM, Ljubomir Ljubojevic wrote:
> Hi.
> I hope this is not too off-topic.
> I am setting up and learning mock to build packages for CentOS 6, and I
> have couple of questions for experts.
> 1. Can I somehow use .repo files from /etc/yum.repos.d/ ? I use 20-30
> .repo files on and off (each repository(folder) in it's own file for
> easier manipulation without editing files), and editing repo configs in
> 2 places is not too appealing. I have seen this:
> $MOCK --copyin /etc/yum.repos.d/texlive-mock.repo /etc/yum.repos.d/
> is this what I am looking for?
> 2. Will cleaning mentioned in manual delete all installed rpms
> (dependencies) or just building folder? If I want to compile same (or
> different but using same dependancies) package, how to keep dependencies
> packages for faster compile? I have ccache = 4G,  yum cache on 15 days
> and root cahce on 10 days. Will this do?
> 3. How do yum priorities work in mock? I have them set for every repo
> and if I can use .repo files will mock honor priorities?
> If .repo files can not be used, do I have to sort repos based on
> priorities values or can I use priority= ?
> Thanks in advance.