Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am facing an issue while installing the dependent RPM.
Please see if anyone has any thoughts on this.
I have one RPM Storage-xxx.rpm (Main RPM) and this RPM functionalities are depending on the some files packaged in the RPM Utilities-yyy.rpm (dependent RPM).
Now my requirement is to install the dependent RPM when i install the Main RPM.
Assume both the RPM's are packaged in a zip file.
when the zip file is extracted both the RPM's will be present in the same directory. (user can extract the zip to any directory).
Now when i execyte rpm -ivh Storage-xxx.rpm (installing main RPM).
the dependent RPM Utilities-yyy.rpm (will be there in the same directory) should be installed first and then main RPM installation.
I know this can be done in pre-install (%pre) section in SPEC file.
But i am not getting the PWD (current working directory) location in
%pre section.
I have one RPM Storage-xxx.rpm (Main RPM) and this RPM functionalities are depending on the some files packaged in the RPM Utilities-yyy.rpm (dependent RPM).
Now my requirement is to install the dependent RPM when i install the Main RPM.
Assume both the RPM's are packaged in a zip file.
when the zip file is extracted both the RPM's will be present in the same directory. (user can extract the zip to any directory).
Now when i execyte rpm -ivh Storage-xxx.rpm (installing main RPM).
the dependent RPM Utilities-yyy.rpm (will be there in the same directory) should be installed first and then main RPM installation.
[snip]
Thanks,
Raghu H B
There may be better ways of doing this, but this is how I would do it on Fedora 11.
Cd to the dir where you have your rpms,
I am trying to avoid using yum while installing RPM's.
Is there a way i can trigger the dependent RPM installation while installing the Main RPM?
I am trying this in preinstall script but the only problem i am facing is,
I am unable to get the "PWD" (Current working directory) location in the preinstall script, it is always get reset to "/" while installing RPM.
If anyone has idea on how to get the "PWD" (Current working directory) location from where the main RPM is located it would be great help.
My idea is to keep the main RPM and dependent RPM in the same directory.
start installing the main RPM, then in the preinstall script install the dependent RPM located in the same directory.
Here the catch is i am not getting the value of current directory location.
I hope you understood the problem, please revert back to me if this is not clear, i can give the detailed description..
I am trying to avoid using yum while installing RPM's.
[snip]
My idea is to keep the main RPM and dependent RPM in the same directory.
start installing the main RPM, then in the preinstall script install the dependent RPM located in the same directory.
Here the catch is i am not getting the value of current directory location.
I hope you understood the problem, please revert back to me if this is not clear, i can give the detailed description..
Thanks in advance..
Raghu H B
I don't know of a solution that exactly matches your requirement.
The only other approach that occurs to me is to set up a local repository (i.e. a dir on your hard disc) and put the dependent rpm in there. See 'createrepo'...but that would also mean using yum, so back where we started!
I guess you must be seeking a solution other than simply installing the rpm, to want to avoid using yum.
Hopefully someone else will know an approach you can use.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.