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

Sun Jul 24 14:02:23 UTC 2011
Ljubomir Ljubojevic <office at plnet.rs>

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.


Ljubomir Ljubojevic
(Love is in the Air)
PL Computers
Serbia, Europe

Google is the Mother, Google is the Father, and traceroute is your
trusty Spiderman...
StarOS, Mikrotik and CentOS/RHEL/Linux consultant