[Yum] Yum to install an RPM first

Rashmi Ranjan Mohanty mrashmiranjan at novell.com
Tue Jan 25 03:56:07 UTC 2011



>>> On 1/24/2011 at 12:58 PM, in message
<AANLkTikdVpCx03LCM7uNoGVzCqxTYLniih0E1-znYVN- at mail.gmail.com>, renu abraham
<ace.renu at gmail.com> wrote: 
> I have a custom made rpm. I need to install my particular RPM in a list of
> rpms which are part of a program.
> Say I have around 20 patch rpms which needs to be installed I need to
> install this through yum command. My particular RPM namely
> Patch-list.1.1.1.2-1.noarch.rpm needs to be installed as the first rpm in
> the total list of 21 rpms. I can modify my spec files and Makefiles as per
> my wish.
> Can anybody suggest what needs to be changed so that my rpm
> Patch-list.1.1.1.2-1.noarch.rpm will be installed first

You can try prerequires. In the spec file of other 20 rpms, add Prereq for Patch-list
Prerequires are install time dependencies where as requires are run time dependencies.
So rpm honors prerequires and installs them first.




More information about the Yum mailing list