Yum error when trying to install an home rolled RPM.

Latest response

Hi

I'm trying to install a set of RPMS, I have the RPMs in a repository that is accessible to anaconda. However when I try to use yum in the post portion part of my kickstart script I get an error "ImportError: No module named yummain". Is yum operational in kickstart?

Any help would be greatly appreciated.

Thanks

Mike

Responses

Yes, yum would work.. I'd assume you could add the packages at the %packages% script part of the kickstart file which should be able to fetch them from repo and install .

I tried that initially, however I'm getting multiple errors in dependent packages: A user that gets created in the "main" kickstart part isn't found coreutils such as cp, mkdir mv aren't found. I put a dependency for coreutils in each of my rpms but the packages is not loaded until after my package.

Not sure what I'm doing wrong.

Strange, I never had this issue.

Yum should be operational in the kickstart.

In the deafgult kickstart provided by Satellite ("Satellite Default Kickstart" I think), a "yum update" is done.

I got it to work, I had to do a chroot /mnt/sysimage.

Nice to see that you got it working.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.