Installing RPM's inside %post

Samir Cury eu at samircury.eng.br
Mon Jul 5 09:58:55 UTC 2010


Hi all,

Thanks for all your quick help, for now it solved removing the file.

The only issue is that's not just about installing the RPM's, but there's a
python script that installs them and make some checks after(and before) , I
don't think is a good idea to skip them on the script, otherwise a previous
check could fail, as it expects the RPMs not installed. I don't know, but to
do that I may have to mess with the script.

For my luck and overall sanity I can test it when time is not an issue
anymore, I do have an yum repository, having an apache and "createrepo" is
great hehehe.

Cheers,
Samir


On Mon, Jul 5, 2010 at 4:15 AM, FlorianFesti <ffesti at redhat.com> wrote:

> On 07/04/2010 06:46 PM, Samir Cury wrote:
>
>> run on %post that actually installs other RPMs
>>
> Don't! The right way of doing this would be setting up a yum repository.
> You can then either set up a comps group or create a meta package containing
> Requires: to the other packages. If you don't want to use any higher level
> tools you can still just use Requires: within a meta package - which will
> require listing them at the CLI or use a manifest file. This is simply a
> textfile listing all the packages that should be installed. RPM can just
> read them in if given at the command line and then opens and installs the
> packages listed there.
>
> Florian
>
> _______________________________________________
> Rpm-list mailing list
> Rpm-list at lists.rpm.org
> http://lists.rpm.org/mailman/listinfo/rpm-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20100705/9f0f1ff6/attachment.html>


More information about the Rpm-list mailing list