[Rpm-maint] RPM chain installing

devzero2000 pinto.elia at gmail.com
Fri May 9 14:40:34 UTC 2008


I have named the package as ordering-<letter>.
But It work for me - see below. I have used only requires dependency.

SPEC included

Sure, if you use

rpm -Uvh ordering-E it doesn't work.

But

rpm -Uvh ordering-E-1.1-3.noarch.rpm ordering-C-1.1-3.noarch.rpm
ordering-B-1.1-3.noarch.rpm ordering-D-1.1-3.noarch.rpm
ordering-A-1.1-3.noarch.rpm
Preparazione in corso...    ###########################################
[100%]
   1:ordering-C             ########################################### [
20%]
   2:ordering-D             ########################################### [
40%]
   3:ordering-B             ########################################### [
60%]
   4:ordering-A             ########################################### [
80%]
   5:ordering-E             ###########################################
[100%]

Yes

Tested with rpm >= 4.3.3 RHEL4,5, and rpm5

I hope to have understood your requirement

Best regards

******************************************

yum install ordering-E

Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package ordering-E.noarch 0:1.1-3 set to be updated
--> Running transaction check
--> Processing Dependency: ordering-A for package: ordering-E
--> Processing Dependency: ordering-B for package: ordering-E
--> Processing Dependency: ordering-C for package: ordering-E
--> Processing Dependency: ordering-D for package: ordering-E
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package ordering-A.noarch 0:1.1-3 set to be updated
---> Package ordering-D.noarch 0:1.1-3 set to be updated
---> Package ordering-C.noarch 0:1.1-3 set to be updated
---> Package ordering-B.noarch 0:1.1-3 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 ordering-E              noarch     1.1-3            DSSS              2.0 k
Installing for dependencies:
 ordering-A              noarch     1.1-3            DSSS              2.0 k
 ordering-B              noarch     1.1-3            DSSS              2.0 k
 ordering-C              noarch     1.1-3            DSSS              2.0 k
 ordering-D              noarch     1.1-3            DSSS              2.0 k

Transaction Summary
=============================================================================
Install      5 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 10 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): ordering-D-1.1-3.n 100% |=========================| 2.0 kB    00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: ordering-D                   ######################### [1/5]
  Installing: ordering-C                   ######################### [2/5]
  Installing: ordering-A                   ######################### [3/5]
  Installing: ordering-B                   ######################### [4/5]
  Installing: ordering-E                   ######################### [5/5]

Installed: ordering-E.noarch 0:1.1-3
Dependency Installed: ordering-A.noarch 0:1.1-3 ordering-B.noarch 0:1.1-3
ordering-C.noarch 0:1.1-3 ordering-D.noarch 0:1.1-3
Complete!


On Thu, May 8, 2008 at 6:21 PM, aneeskA <aneeska2k5 at gmail.com> wrote:

> Ok. I'll try to explain my situation more clearly. Say I have 5 RPMS named
> A, B, C, D and E. They are dependent on each other like this-> B on A, C on
> B and A, D on C, B and A and E on D, C, B and A. I have defined this in spec
> file using 'PreReq' tag (I donno if this is correct. but  if I try to
> install C before A and B, he will complain their absence. That much I know)
>
> Now I am looking for a way in which before installing A, B, C and E, if I
> try to install E, he must install the dependent RPMs if they are available
> locally automatically.
>
>    Your thoughts on this. I am desperate for a solution.
>
> Regards
> -- anees
>
>
> On Thu, May 8, 2008 at 9:35 PM, devzero2000 <pinto.elia at gmail.com> wrote:
>
>> I have not understood the question. Perhaps it is my fault.
>>
>> The order of installation of the RPM packages is defined from the
>> dependencies
>> - file and package - that are defined in the rpm(s). The task of the
>> resolver of the dependencies - rpm, yum, smart ecc-
>> are that to construct an direct graph of these  dependencies for
>> installing/updating the package in that order.
>>
>> Naturally the dependencies must be defined in explicit (e.g. Requires: in
>> the SPEC ) or implicit (e.g. shared lib) way
>> in the rpm.
>>
>> So, what is the problem you are trying to solve ?
>>
>> Best Regards
>>
>> On Thu, May 8, 2008 at 5:37 PM, aneeskA <aneeska2k5 at gmail.com> wrote:
>>
>>> Hi all,
>>>
>>>     Here is the situation. I have with me 10 RPMs (which I have created).
>>> Also they are dependent on one another like for example if I have RPMs named
>>> A, B, C, ... J and they are dependent in that order (B is dependent on A, C
>>> on B and A, D on A, B and C and so on). Then how can i install them in that
>>> order by another RPM ( or something like that) in which I say install these
>>> RPM in that order. Or can I provide the list of RPM in a file so that the
>>> order of installation is taken from that file ? Basically I am looking for a
>>> way to install those RPMs in a specified order.
>>>
>>>    Any thoughts ?
>>>
>>> Regards
>>> -- anees
>>>
>>> _______________________________________________
>>> Rpm-maint mailing list
>>> Rpm-maint at lists.rpm.org
>>> https://lists.rpm.org/mailman/listinfo/rpm-maint
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rpm.org/pipermail/rpm-maint/attachments/20080509/a1d75fc0/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ordering.spec
Type: application/octet-stream
Size: 1995 bytes
Desc: not available
Url : http://lists.rpm.org/pipermail/rpm-maint/attachments/20080509/a1d75fc0/attachment-0001.obj 


More information about the Rpm-maint mailing list