LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-10-2010, 10:01 AM   #1
yeding71
LQ Newbie
 
Registered: Jun 2010
Posts: 11

Rep: Reputation: 0
Nest RPM installtion


I have some RPMs (a.rpm, b.rpm) then I received some new RPMs (c.rpm, d.rpm,e.rpm) but those can not be installed in same way as a.rpm or b.rpm. I have to run a script to install the new rpms.

The issue is what is the best way to run the script to install the three new rpms.

I was thinking of build another rpm x.rpm which runs the script to install c,d,e. Then I'll install a.rpm, b.rpm,x.rpm, but was told x.rpm has nested rpms and since the rpm database is locked out, it will not work.

BTW, is there some files that can specify which set of RPMs to install?
i.e. I have 100 rpms in a directory but I only want to install 5 of them, how do I specify that? in a .dsc file?

Thanks,
 
Old 06-10-2010, 10:17 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
It would be useful at this point (see answers to your previous thread) to know some details about your Linux OS and the reason why you had to download 100 RPMs and install them manually. Are these RPMs coming from the official Linux distribution? Maybe did you download them from another machine, since you haven't an internet connection? Just guessing.

By the way, better to use the package manager provided out-of-the-box with your linux installation (Yast2 or zypper for OpenSuse, Add/Remove software or yum for Fedora, and so on). The reason is that it will install packages specifically built for your system and it will take care of the dependencies automatically.
 
Old 06-10-2010, 11:18 AM   #3
yeding71
LQ Newbie
 
Registered: Jun 2010
Posts: 11

Original Poster
Rep: Reputation: 0
It is a special set of RPMs we received from a third party and we have to use the script they provided to install those RPMs. Straight RPM installation will not work with those RPMs. This is not a nice way but we have no choice.

I do not yet know the linux distribution yet but I would like to understand a general concept of how this could be done. Of course, I can find the software process that installs the current RPMs and insert a hook to run the script we received which will install the third party RPMs. I do not feel this is a nice way, but want to seek suggestions. Initially I want to build an single RPM to run the scripts but it might not work since the RPM DB is locked out which might prevent from installing third party RPMs. I am not an expert on this.
 
Old 06-10-2010, 11:36 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Ok. Clear now. The script you received along with the three new RPMs could simply be a wrapper to check some dependencies and/or to perform pre- or post-installation tasks. In my opinion it would be easier to insert the installation of a.rpm, b.rpm, c.rpm, ... in the script itself, but it depends on the actual structure and aim of this script. And on the way the a.rpm, b.rpm, ... packages are going to be previously (?) installed.
 
Old 06-10-2010, 11:55 AM   #5
yeding71
LQ Newbie
 
Registered: Jun 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks for the answers.

Current system installs a and b. Their installation can not be added into the script.

We have to find a way to run the script.

Is there a way for the nested RPM to work?
 
Old 06-10-2010, 12:05 PM   #6
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Can't you wrap the script in another script. The latter will first install a.rpm and b.rpm and next execute the original script provided by the supplier.
 
Old 06-17-2010, 12:11 PM   #7
yeding71
LQ Newbie
 
Registered: Jun 2010
Posts: 11

Original Poster
Rep: Reputation: 0
package some RPMs into another RPM?

Newbie question:
I have RPMs a.rpm, b.rpm, c.rpm.

Can I build above three RPMs into another RPM say x.rpm?
How does installation work if I want to ensure the order of installation if b.rpm, a.rpm, c.rpm.

Thanks
 
Old 06-17-2010, 02:23 PM   #8
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,088

Rep: Reputation: 196Reputation: 196
Why does it matter what order they're installed in? I ask because I'm thinking it shouldn't matter.


You can make rpms depend on another rpm. So you could make c.rpm depend on a.rpm and a.rpm depend on b.rpm. That way a package manager such as zypper or yum when told to install c.rpm would automatically install a.rpm and b.rpm, assuming it could find them. Not sure that would get them installed in the order b a c though. Or you just make c.rpm depend on a.rpm and b.rpm.
 
Old 06-18-2010, 06:58 AM   #9
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
I have merged your 2 closely-related threads---one thread per topic please.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fstab=nest vipers stabu Linux - Software 12 11-17-2008 05:54 PM
[bash] How do I nest for arrays? blckleprd Programming 3 06-05-2008 11:49 PM
how to nest commands new_2_unix Linux - Newbie 2 11-16-2007 11:20 PM
can you nest backticks? BrianK Programming 7 03-22-2007 01:40 PM
flex c++ code about nest file?? chuanyung Programming 0 01-20-2004 04:36 AM


All times are GMT -5. The time now is 08:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration