Re: Obsoletes: not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/24/2012 06:45 AM, seth vidal wrote:
On Wed, 23 May 2012 21:33:35 -0400
"Brian J. Murrell"<brian@xxxxxxxxxxxxxxx>  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.

To elaborate a bit: rpm's -i is a special mode for the special purpose of permitting installation of multiple versions of the same package in parallel. Typically the only time and place it should be used is the kernel packages, for all other packages -U should be used whether an actual update or first-time installation of the package.

	- Panu -
_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxx
http://lists.baseurl.org/mailman/listinfo/yum


[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux