Create a RPM package that install other RPM package!

devzero2000 pinto.elia at gmail.com
Wed Mar 4 16:07:32 UTC 2009


On Wed, Mar 4, 2009 at 4:34 PM, Derek Atkins <warlord at mit.edu> wrote:

> Quoting seth vidal <skvidal at fedoraproject.org>:
>
>  On Wed, 2009-03-04 at 10:06 -0500, Derek Atkins wrote:
>>
>>> seth vidal <skvidal at fedoraproject.org> writes:
>>>
>>> > On Wed, 2009-03-04 at 11:30 -0300, Jorge Pereira wrote:
>>> >> Hello Everyone!
>>> >>
>>> >> I have an RPM package for a given application, and this package works
>>> >> perfectly!
>>> >> so now I need to make sure this package is a dependency, if not
>>> >> installed it will
>>> >> automatically install another RPM package that turns inside the
>>> package!
>>> >>
>>> >> Example:
>>> >>
>>> >> i have the RPM "package-001.rpm" that depends of "adobe-air1.xx.rpm",
>>> >> if package of adboe-air is not installed, i need run eg something like
>>> >> rpm -ivh /path/install/adobe-air1.xx.rpm
>>> >>
>>> >> just is a some example! i try but don't works becouse the resource is
>>> locked by
>>> >> first instance of "rpm -ivh", this is possible?
>>> >>
>>> >
>>> > no. It's not possible.
>>>
>>> Actually, I was trying to solve this and I got it to work by
>>> moving the transaction lock out of the way, performing the secondary
>>> rpm operation, and then moving the rpm lock back into place.
>>>
>>>
>> this falls into the category of extraordinarily bad ideas. Seriously,
>> don't encourage others to break the transaction lock.
>>
>
> If RPM supported it natively I wouldn't have to.   But I'm distributing
> third-party software that's in multiple RPMs but I want my users to
> only have to manually download a single file.  I have limited options.
> My choices are:
>
> 1) a shar-like self-extracting archive that contains and installs the
>  necessary RPMS, or
> 2) an RPM that contains and installs additional RPMs.
>
> Saying "use yum" just doesn't solve the problem I'm trying to solve.
> But between these choices I prefer options 2.
>
>  -sv
>>
>
> -derek
>

Un RPM PACKAGE BUNDLE example included. It WORKFORME.

[machbuild at rhel5 SPECS]$su -c "rpm -Uvh
/home/machbuild/rpmbuild/RPMS/rpm-package-bundle-1.0-1.noarch.rpm"
Preparazione in corso...    ###########################################
[100%]
   1:rpm-package-bundle     ###########################################
[100%]
[machbuild at rhel5 SPECS]$ rpm -q A
A-1.0-1
[machbuild at rhel5 SPECS]$ rpm -q B
B-1.0-1
[machbuild at rhel5 SPECS]$ su -c "rpm -e rpm-package-bundle"
[machbuild at rhel5 SPECS]$ rpm -q rpm-package-bundle
package rpm-package-bundle is not installed
[machbuild at rhel5 SPECS]$
[machbuild at i858shlf SPECS]$ rpm -q A
package A is not installed
[machbuild at i858shlf SPECS]$ rpm -q B
package B is not installed


hth



>
> --
>      Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
>      Member, MIT Student Information Processing Board  (SIPB)
>      URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
>      warlord at MIT.EDU                        PGP key available
>
> _______________________________________________
> Rpm-list mailing list
> Rpm-list at lists.rpm.org
> http://lists.rpm.org/mailman/listinfo/rpm-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20090304/fe94c7a8/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rpm-package-bundle.spec
Type: application/octet-stream
Size: 1512 bytes
Desc: not available
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20090304/fe94c7a8/attachment.obj>


More information about the Rpm-list mailing list