[CentOS] local repo

Ljubomir Ljubojevic office at plnet.rs
Sun May 29 08:12:36 UTC 2011


Steven Crothers wrote:
> Marian,
> 
> He wanted to disable default repos and enable his private mirror
> instead. Your solution would actually not help him. He wants to make
> his personal repo the primary repo for fresh installs, which can only
> be done in %post since centos-release is going to overwrite it. Using
> --disablerepo on a non-existent repo (the problem being expressed)
> wouldn't work in this case.
> 
> Of course another option is to download the centos-release srpm, and
> change the repos built in, or remove the repos entirely and make it
> rely on your-repos.rpm or similar. That's probably a little over the
> top for what you're looking for though.
> 
He can also set exclude=centos-release somewhere (never played with 
kikstarts) and install his own release file, or just yum repolist file 
with his data.

I created several release files and even created small script that 
backups existing and installs one of several sets of repo files.

Ljubomir



More information about the CentOS mailing list