LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   My rpm needs to install first in a list of RPMS (https://www.linuxquestions.org/questions/linux-newbie-8/my-rpm-needs-to-install-first-in-a-list-of-rpms-858253/)

privateren 01-24-2011 01:16 AM

My rpm needs to install first in a list of RPMS
 
Hi,

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.

Andy Alt 01-24-2011 03:12 AM

If I understand you right, you can use rpm --nodeps -i Patch-list.1.1.1.2-1.noarch.rpm

The nodeps option will disable dependency checking (just for that package). Then when you've installed the known dependencies, try re-installing Patch-list.1.1.1.2-1.noarch.rpm without the nodeps option. If all the deps are installed, you should get no warning messages.

privateren 01-25-2011 03:19 AM

Thanks Andy Alkaline for your reply. I will be using yum command as this should be installed form a repository. I will be using Patch-list.1.1.1.2-1.noarch.rpm for backing up the configuration files before the installation of the other rpms. On issuing yum command My rpm Patch-list.1.1.1.2-1.noarch.rpm needs to be automatically installed as the first rpm so that I can have the configuration backup


All times are GMT -5. The time now is 01:02 PM.