[Spacewalk-list] Disable repos

Christoph Sievers christoph.sievers at gmail.com
Wed Jul 28 14:38:01 UTC 2010


Am 28.07.10 16:31, schrieb James Hogarth:

> As an example I have a no chroot post script that says this:
> 

I recommend to set reposdir to /dev/null within yum.con

> %post
> for i in `ls /etc/yum.repos.d`;
> do mv /etc/yum.repos.d/$i /etc/yum.repos.d/$i.disabled;
> done
> 

like

echo 'reposdir=/dev/null' >> /etc/yum.conf

rgds
Christoph




More information about the Spacewalk-list mailing list