[Yum] Obsoletes: not working

seth vidal skvidal at fedoraproject.org
Thu May 24 03:45:43 UTC 2012


On Wed, 23 May 2012 21:33:35 -0400
"Brian J. Murrell" <brian at interlinx.bc.ca> wrote:

> On an EL6 machine, I've built a package "foo-bar" and it's intended to
> replace any already installed "bar" package on any machines it's
> installed on so I put an:
> 
> Obsoletes: bar
> 
> in foo-bar.spec and it seems to have been added to the resulting
> package:
> 
> # rpm -q --obsoletes -p foo-bar-1.1-1.el6.noarch.rpm
> bar
> # rpm -ivh foo-bar-1.1-1.el6.noarch.rpm
> Preparing...          ###########################################
> [100%] 1:foo-bar          ###########################################
> [100%] # rpm -q bar
> bar-1.0-1.el6.noarch
> 
> So why didn't the "Obsoletes: bar" remove "bar"?
> 
> Cheers,
> b.
> 


b/c you did an rpm -ivh not -Uvh.

install doesn't process the obsoletes.


also this is the yum mailing list and this is a reason why yum was
written.

-sv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: not available
URL: <http://lists.baseurl.org/pipermail/yum/attachments/20120523/ea35b4b2/attachment-0001.asc>


More information about the Yum mailing list