On Mon, 11 Jul 2011, Steven A. DuChene wrote: > I have copied the various files off of a Redhat dvd to a kickstart server and created a working ks.cfg file. I am able to kickstart servers with the default install files that were on the original DVD media. However I want to be able to update some of the rpms with newer ones like a newer kernel. I also need to add one or two custom rpms of my own. > > I tried just copying my small add-on rpm into the Packages directory and then adding that rpm name into my ks.cfg file but I got an error during the resulting kickstart operation that the rpm was not available. I am pretty sure I need to update the repo files that tell the system what rpms are available. I installed the createrepo rpm along with some other dependencies required but I have not been able to find any definite directions on how to accomplish this. > > Has anyone here ever done something like this and can provide some direction on how to proceed from this point or point me towards some definite documentation on the process? The usual approach is to set up a separate local archive, and to run 'createrepo' to build the files 'yum' needs, and to handle it in %post but it is perfectly possible to dump new (later NEVR) packages into a local image of an archive and to run 'createrepo' on that directory --- RPM and anaconda, and in recent RHEL, yum will pick up the change That said, there is (or at least was, I have not verified this is still present for a while -- doco indicates it is still there, but anaconda doco is notoriously bad) the ability to add a './RHupdates/' directory to hold such a package repository that anaconda will 'automatically find' http://fedoraproject.org/wiki/Anaconda/Updates all that said, it is easier usually in the ks.cfg %post stanza, to: a) use a 'HERE' document to drop the local repostitory specification into /etc/yum.repos.d/ and then b) run yum -y --enablerepo=(localrepo) update yum clean all -- Russ herrold --------------------------------------------------- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss