Dependency package get removed when upgrade base package?

Huo QiFeng huoqifeng at gmail.com
Tue Jul 27 08:01:43 UTC 2010


Block is fine...Thanks, will have a try in that.

On Tue, Jul 27, 2010 at 3:58 PM, devzero2000 <pinto.elia at gmail.com> wrote:

> On Tue, Jul 27, 2010 at 8:50 AM, Huo QiFeng <huoqifeng at gmail.com> wrote:
> > If b1 depends on a1 explictly,  and i'm upgrading from a1 to a2? Will b1
> be
> > removed automatically? Or the upgrading be blocked to instruct user to
> > remove b1 first?
> I suppose that when you tell : b1 depends on a1 explictly you would tell
> that exist in the b1 spec an Requires : a = 1: in this case the
> upgrading will block yes
> e.g. rpm -Uvh will tell you
>
> error: Failed dependencies:
>        a = 1 is needed by (installed) b-1.0-1.noarch
>
> But you can put an Obsoletes: b  in a2 spec and b1 will be removed
> automatically. e.g
>
> rpm -q b
> b-1.0-1
> [root at joke ~]# rpm -Uvh /home/machbuild/rpmbuild/RPMS/a-2-1.noarch.rpm
> Preparing...                ###########################################
> [100%]
>   1:a                      ###########################################
> [100%]
> [root at joke ~]# rpm -q b
> package b is not installed
>
> hth
>
> >
> > --
> > Best Regards
> > ------------------------------------------------
> > Huo QiFeng
> >
> > _______________________________________________
> > Rpm-list mailing list
> > Rpm-list at lists.rpm.org
> > http://lists.rpm.org/mailman/listinfo/rpm-list
> >
> >
> _______________________________________________
> Rpm-list mailing list
> Rpm-list at lists.rpm.org
> http://lists.rpm.org/mailman/listinfo/rpm-list
>



-- 
Best Regards
------------------------------------------------
Huo QiFeng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20100727/430cbd46/attachment.html>


More information about the Rpm-list mailing list